mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #16164] Cache rules of .ignore files #14547
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/16164
Author: @TheMelmacian
Created: 2/2/2026
Status: 🔄 Open
Base:
release-10.11.z← Head:10.11.z/feature/cached_ignore_rules📝 Commits (1)
ad5db77feat(DotIgnoreIgnoreRule): cache rules of .ignore files📊 Changes
2 files changed (+87 additions, -28 deletions)
View changed files
➕
Emby.Server.Implementations/Library/DotIgnoreFile.cs(+8 -0)📝
Emby.Server.Implementations/Library/DotIgnoreIgnoreRule.cs(+79 -28)📄 Description
Added a simple cache for ignore rules to prevent unnecessary re-creations of the same rule set over and over on each IsIgnored check.
This has massively reduced the scan times of one of my libraries that makes heavy use of a large .ignore rule set.
(see linked issue for more info).
Changes
Issues
Fixes #16163
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.