DO NOT REPLY [Bug 48013] New: Image processing makes FOP really slow

View: New views
5 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 48013] New: Image processing makes FOP really slow

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48013

           Summary: Image processing makes FOP really slow
           Product: Fop
           Version: 0.95
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@...
        ReportedBy: levinson@...


Created an attachment (id=24385)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24385)
image testing file

In investigating a problem in the display of PNG images in FOP, I discovered
that image processing was really slow.

Examining the code in a debugger the surprise is that the source of slowness is
not the rendering of the image (which is done through Java’s JAI) but in the
steps leading up to the rendering of the image.

For a simple FO page, with a single PNG image FOP takes 90 seconds.  Remove the
image and FOP takes 1 second.  RenderX takes a second as well with our without
the image.

So the addition of a single image to an FO page results in extreme slowness –
two orders of magnitude slower than RenderX XEP.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48013] Image processing makes FOP really slow

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48013

--- Comment #1 from Jonathan Levinson <levinson@...> 2009-10-16 11:44:41 UTC ---
Created an attachment (id=24386)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24386)
Image used

Image used

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48013] Image processing makes FOP really slow

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48013

--- Comment #2 from Sean Griffin <sgriffin@...> 2009-10-19 07:16:33 UTC ---
Can you describe what steps leading up to the rendering that you identified as
the slow points?  Also maybe more about your environment (max heap, etc.).

I tried this myself with just the default max heap size and was able to create
the PDF in under 0.5 sec using the client Hotspot JVM.

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48013] Image processing makes FOP really slow

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48013

--- Comment #3 from Jonathan Levinson <levinson@...> 2009-10-19 11:13:56 UTC ---
I am on Windows XP with 3.5 Gig of memory.  I am running on a Dell Latitude
D630 laptop.  Dual Core.  2.6 GHz.

C:\jai-1_1\lib>java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

I have JAI 1.1.3 installed and am able to run the demos.

Right now, I can't get fop-0.95 to display the image because I get the error:

SEVERE: Image not available: No ImagePreloader found for
file:///perforce/Users/levinson/B47157/test-image.png

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48013] Image processing makes FOP really slow

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48013

--- Comment #4 from Jonathan Levinson <levinson@...> 2009-10-22 11:59:13 UTC ---
Fixed in patch.
http://svn.apache.org/viewvc?rev=828814&view=rev

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.