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

feat: no need to ref/unref with new PLAYA-PDF (rhymes, and also fixes #1) #4

Merged
merged 2 commits into from
Jan 22, 2025

Conversation

dhdaines
Copy link
Owner

Through the magic of weakref.WeakValueDictionary we can avoid dangling backreferences to the parent document for indirect objects parsed in worker processes.

This means that there is no longer any slowdown for small documents with multiple CPUs.

@dhdaines dhdaines changed the title feat: no need to ref/unref with new PLAYA-PDF (fixes #1) feat: no need to ref/unref with new PLAYA-PDF (rhymes, and also fixes #1) Jan 22, 2025
@dhdaines dhdaines merged commit e9b08b2 into main Jan 22, 2025
4 checks passed
@dhdaines dhdaines deleted the no_ref branch January 22, 2025 13:53
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.

1 participant