[Poppler-bugs] [Bug 7910] New: Custom memory allocator to improve
loading time by ~25%
bugzilla-daemon at annarchy.freedesktop.org
bugzilla-daemon at annarchy.freedesktop.org
Thu Aug 17 22:28:35 PDT 2006
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=7910
Summary: Custom memory allocator to improve loading time by ~25%
Product: poppler
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: kkowalczyk at gmail.com
Allocation (malloc()/free() calls) account for a lot of time used by poppler.
Custom memory allocator uses free lists and allocates memory in chunks for the
most frequently allocated memory sizes (in my testing about 90% of allocations
are served by the 4 sizes covered by the patch).
The code is optional and only used when USE_FAST_ALLOC symbol is defined so it
can be easily turned on and off.
In my testing with this patch loading ~8MB pdf file (PDFReference1.6.pdf
available from Adobe website)is speed up by ~25% (this is on top of my previous
optimizations; improvement should be even better against current poppler CVS
sources).
Code is copiously commented and the algorithm used rahter simple.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Poppler-bugs
mailing list