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

Merged
dhdaines merged 2 commits from no_ref into main 2025-01-22 08:53:29 -05:00
dhdaines commented 2025-01-21 22:11:32 -05:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No description provided.