Re: [Podofo-users] Thought on "object garbage collection"
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
From: Dominik S. <dom...@we...> - 2006-08-31 19:54:41
|
Reading stream objects but not their bytes should work already.=20 I do not want to load all objects immediately, to construct such a table wh= ile=20 loading. This would drive the load on demand functionallity we currently ha= ve=20 useless.=20 As the garbage collection of objects will only occur before writing the=20 objects, it is no problem to load all objects at that point of time. We hav= e=20 to load them for writing anyways. We would have to walk through all objects= =20 though in this case, as we cannot create the table entry during PdfReferenc= e=20 construction. So we have to find out which is the bigger advantage: Either build a garbag= e=20 collection table when loading the document or support loading on demand of= =20 objects and have a slower garbage collection when writing. I prefer support= =20 for loading of demand of objects, as this should give better performance an= d=20 will be more often used than garbage collection of objects. best regards, Dom Am Wednesday, 30. August 2006 04:04 schrieb Leonard Rosenthol: > Since ANY/ALL "references" to indirect objects MUST go through > PdfReference objects - if we were to keep a table of all objects that > are referenced (and perhaps a count), then we could easily find out > what objects are (and are not) referenced! > > We might have to load all objects in order to do so, since we won't > have created refs for not-yet-loaded objects...This would, however, > be a good excuse to support loading a Stream object w/o actually > reading the stream bytes - separating that operation. > > There may be a flaw in this - haven't worked it 100% yet...but it > seems good on the surface... > > LDR > > -------------------------------------------------------------------------= =2D- > Leonard Rosenthol <mailto:leo...@pd...= m> > Chief Technical Officer <http://www.pdfsages.com> > PDF Sages, Inc. 215-938-7080 (voice) > 215-938-0880 (fax) > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Podofo-users mailing list > Pod...@li... > https://lists.sourceforge.net/lists/listinfo/podofo-users =2D-=20 ********************************************************************** Dominik Seichter - dom...@we... KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE Alan - http://alan.sf.net - A Turing Machine in Java ********************************************************************** |