commit | c06f4c400d970fb73fa5f326fb07eeb64d47b6ce | [log] [tgz] |
---|---|---|
author | Krzysztof Kowalczyk <kkowalczyk@kjkubu.(none)> | Tue Sep 25 22:19:16 2007 -0700 |
committer | Krzysztof Kowalczyk <kkowalczyk@kjkubu.(none)> | Tue Sep 25 22:19:16 2007 -0700 |
tree | d875c12141f2230067510d2a5df880a74440682c | |
parent | 1636f44df7290edfc1ae67c7304d584255083492 [diff] |
Perf improvement for some scenarios by caching SplashPath. PDF from https://bugs.freedesktop.org/show_bug.cgi?id=11849 shows a high rate of creation/destruction of SplashPath objects. At the same time, only a few exists at the same time. This patch implements a small cache to recycle SplashPath objects. In my test rendering time for the above PDF dropped ~4%, mostly thanks to decent reduction in malloc/free calls.