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

Properly invalidates internal unions cache after bookmark #2312

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

patrickdalla
Copy link
Collaborator

Properly invalidates internal unions cache after bookmark deletion and creation.

Closes #2311.

@lfcnassif
Copy link
Member

Thanks @patrickdalla. Was this opened as draft intentionally?

@patrickdalla
Copy link
Collaborator Author

patrickdalla commented Aug 26, 2024 via email

@patrickdalla patrickdalla marked this pull request as ready for review August 26, 2024 16:55
@lfcnassif
Copy link
Member

I didn't create any related rule, I think github shows the last option used by the developer. Thanks @patrickdallla.

@lfcnassif
Copy link
Member

By the way, are those internal bookmark caches helpful in practice? Did you have noticiable performance bottlenecks that were fixed by them?

@patrickdalla
Copy link
Collaborator Author

There wasn't a bottleneck. This specific "cache" is just a variable with the result of the union of all bookmarks bitmaps that I use to check for items with no bookmarks.
It was just a code execution that I thought at implementation time it could be avoided to be repeated as every user filter change would run it again, although bookmark may not change.

@lfcnassif
Copy link
Member

Sorry for my delay, thank you @patrickdalla for this fix!

@lfcnassif lfcnassif merged commit fe59d54 into master Sep 4, 2024
2 checks passed
@lfcnassif lfcnassif deleted the BookmarkCacheInvalidation branch September 4, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Item with no bookmarks are not filtered properly after deleting a bookmark (master only)
2 participants