Leonard Rosenthol wrote:
> Yes - custom allocators OR static allocators will DEFINITELY help...

Well, I got no significant (or even detectable) gain in performance from 
using a small static buffer in PdfRefCountedBuffer, though it cut 
allocations considerably.

I'll have a bash at getting rid of the need to individually 
heap-allocate the internal buffer tracking structures too, and if that 
has a neutral cost or small performance win I'll be interested in 
checking the changes in just to reduce the amount we thrash the heap.

In any case, profiling suggests that there won't be much in the way of 
an actual performance gain from that, but it might well help reduce 
memory fragmentation, or at least be a step on the way. (PdfVariant is 
another worry in that regard, but one that's much harder to deal with).

I did notice, though, that PoDoFo seems to parse my usual test files 
half again to twice as fast as it used to - while being more featureful 
and more reliable.

--
Craig Ringer

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to