Leonard Rosenthol wrote: > What's the performance difference? From what I can tell it's negligible in terms of overall performance. I haven't yet put together some long running tests, though, nor tests focusing on PdfRefCountedBuffer, so it's not good for much yet.
It does strike me that we have a lot of other places where we allocate huge numbers of fixed size heap objects. Just for kicks, I introduced boost pool allocators into most of them ( all the complex PdfDataType subclasses, etc ) and found that there was a measurable but small performance hit and little effect on overall memory consumption. That was in the most fragmentation-oblivious testing, though - things like parsing a whole PDF or content stream, writing it out, and exiting. I'll need to chuck some better tests together before I can say much more. I figured I'd chuck that out there in the mean time, since I often find even small code snippets helpful when tracking back later. You know the feeling - "hmm, I think I looked at something vaguely like that...". -- Craig Ringer ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
