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

Improve PDF reader items observer #1027

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

mvasilak
Copy link
Contributor

Improves lag reported in forum post

For the items observer in PDF reader, filters with keyPath for changeType property, to only observe modifications of those annotations with a modified change type. Otherwise, every annotation insertion would also trigger after sync an observed update of all annotations modified.
Since the observer runs on the main thread there is a noticeable lag with a large number of annotations (I tested with over 1000). There is room for future improvements regarding this edge case.

@mvasilak mvasilak merged commit 89f2768 into zotero:master Nov 20, 2024
1 check passed
@mvasilak mvasilak deleted the improve-pdf-reader-items-observer branch November 20, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants