Remove PDF::Reader::Tied run-time compositions
Closed this issue · 2 comments
dwarring commented
$object but PDF::Reader::Tied
composes a completely new object which is wasteful and likely to lead to issues (two sets of objects).
This needs to be done declaratively . Will need a little reorganization of the reader methods + object class definitions. I'm hoping I can get rid of the anonymous ties currently being composed by PDF::Reader::Tied.
dwarring commented
About to land the tie-rework branch. PDF::Reader::Tied has been moved to PDF::Object::Tree.
Also modified PDF::Object::{Dict|Array|Stream} compositions and replaced to-obj() with shallower from-ast(). Circular dependencies are now hopefully handled properly. No infinite recursion and no replication of multiply referenced hashes and arrays.