[gs-bugs] [Bug 691978] Performance problem reading PostScript file

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Oct 18 20:12:45 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=691978

Ray Johnston <ray.johnston at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #12 from Ray Johnston <ray.johnston at artifex.com> 2011-10-18 20:12:43 UTC ---
I made a slightly modified form of Ken's patch that properly passes the
30-10.PS
CET test and then also fixed some bugs that showed (seg faults) caused when the
GC timing changed -- there were places that didn't allow for the case when
the i_ctx_p and/or i_ctx_p->pgs would change due to GC running and relocating
the structures. I also made the suggested changes to our internal usage to
use .vmreclaim directly.

On my laptop, this runs the test file in 18 seconds vs. 1425 seconds with GC
running every time the file asks for it. Since the GC isn't disabled, it still
runs when the amount allocated since the last GC exceeds the vmthreshold, so
the memory usage doesn't change much (I didn't measure it).

Since it passes the cluster testing and speeds things up so much, I don't
see any downside to this change and have committed it as 4d0f6ec

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list