Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclusions: Improve filter performance by keeping exclusion data loaded #1121

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Apr 5, 2024

We access val current = exclusions.first() a lot which would previously do the data merge (user+defaults) every time, that's wasted performance, let's do it once and keep it in memory.

This increases RAM usage, but as exclusions are used in all tools anyways, it shouldn't matter.

Might be cool though to make exclusions a SharedResource in the future to scope it better, like other modules (e.g. FileForensics).

@d4rken d4rken added enhancement New feature, request, improvement or optimization c: Exclusions labels Apr 5, 2024
@d4rken d4rken merged commit d0fb8aa into main Apr 5, 2024
16 checks passed
@d4rken d4rken deleted the exclusions_scope branch April 5, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Exclusions enhancement New feature, request, improvement or optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant