[Poppler-bugs] [Bug 64892] very slow render

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 4 03:24:37 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=64892

--- Comment #32 from Thomas Freitag <Thomas.Freitag at alfa.de> ---
(In reply to comment #29)
> Thomas "quick" question: are the 
> 
> -    if (scaledHeight < srcHeight) {
> -      if (scaledWidth < srcWidth) {
> +    if (scaledHeight <= srcHeight) {
> +      if (scaledWidth <= srcWidth) {
>         scaleImageYdXd(src, srcData, srcMode, nComps, srcAlpha,
>                       srcWidth, srcHeight, scaledWidth, scaledHeight, dest);
>        } else {
> @@ -4077,11 +4077,11 @@ SplashBitmap *Splash::scaleImage(SplashImageSource
> src, void *srcData,
>                       srcWidth, srcHeight, scaledWidth, scaledHeight, dest);
>        }
>      } else {
> -      if (scaledWidth < srcWidth) {
> +      if (scaledWidth <= srcWidth) {
> 
> 
> changes needed?
> 
> If i remove them I still get the speedup and the delta with the old version
> renders is reduced a lot, for example, bug114741.pdf has no changes instead
> of changing for every page.


Just remove it: When I tried to find the reason for the slow rendering I
thought that downscaling is faster than upscaling (at least there is definitely
no bilinear interpolation), and the most pattern had the same width. But after
I figured out that it didn't help really I forgot to revert it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130604/40d1d9cf/attachment.html>


More information about the Poppler-bugs mailing list