Peter sent me one of his large TIFF images to test with. Thanks, Peter.
I used his FO snippet he posted at the beginning of the thread so the
firgures below are including Batik into the picture.

The TIFF file: RGB, LZW compression, 1327x3682 pixels, 2.73MB

I couldn't see a factor 6 increase of time necessary to process the
picture on my Windows XP SP2 except when run inside my profiler but
that's due to method instrumentation overhead. The normal runtime effect
was far smaller. As you can see I didn't experience slower performance
with FOP Trunk/0.95beta compared to 0.94. Here's what I measured (please
note that the figures below always refer to the server VM with parallel
GC enabled, JVM startup and class loading is included in the times):

FOP 0.94 (Commons' TIFF codec)

Java 1.4.2: 4.0 sec
Java 1.5.0: 3.6 sec
Java 6: 3.3 sec

Trunk (comparable to 0.95beta, JAI TIFF codec)

Java 1.4.2: 2.9 sec
Java 1.5.0: 2.9 sec
Java 1.6: 2.6 sec

When profiled with my YourKit profiler I found two hotspots which are
now fixed:
http://svn.apache.org/viewvc?rev=647537&view=rev
http://svn.apache.org/viewvc?rev=647536&view=rev

The latter hotspot in Commons is only triggered when my new TIFF image
loader is used.

0.95 Branch (including my performance fixes, JAI TIFF codec):

Java 1.4.2: 2.2 sec
Java 1.5.0: 2.0 sec
Java 6.0: 1.9 sec

0.95 Branch (including my performance fixes, internal TIFF codec):

Java 1.4.2: 2.7 sec
Java 1.5.0: 2.4 sec
Java 6.0: 2.3 sec

Just as an experiment I've converted the TIFF image to JPEG with
relatively low compression so there are no serious artifacts. The
resulting JPEG image is 425KB. If performance is important and the
images are suitable (fotos), JPEG can be an option since the images
don't have to be decoded for PDF production. Here's the result:

0.95 Branch (including my performance fixes):
Java 6.0: 1.1 sec


On 12.04.2008 11:37:01 Jeremias Maerki wrote:
<snip/>
> If Peter sends me his test TIFF I'll profile the problem. A factor 6
> increase is certainly not to be expected.
<snip/> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to