[gs-bugs] [Bug 691504] gs takes an exceedingly long time to display the attached pdf file

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Wed Aug 4 17:55:09 UTC 2010


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

--- Comment #11 from Robin Watts <robin.watts at artifex.com> 2010-08-04 17:55:06 UTC ---
Created an attachment (id=6606)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6606)
diff.txt

Proposed change to fix the problem.

Basically, this reverts to using (int)x rather than (int)(floor(x)), so removes
the overhead of floor. We then check for x being negative, and only if it is,
do we do the (relatively expensive) test to correct rounding.

Also, some simple optimisations to reduce the floating point calculations done
in loop.

-- 
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