Date: Thu, 17 Dec 2009 16:07:02 +0530
From
To: [email protected]
Subject: [iText-questions] URGENT:
com.lowagie.text.pdf.PdfGraphics2D.fillArc() takes more time to execute
.ExternalClass DIV
{;}
[ hotmail refuses to handle plain text in a rational way ... ]
Here I am facing the performance issue while using the graphics instance of
com.lowagie.text.pdf.PdfGraphics2D for drawing chart.
The fillArc() method overridden for PDFGraphics2D takes average 215
milliseconds to execute for my chart data. In against to this, while using
sun.java2d.SunGraphics2D for drawing chart, the fillArc() method is executed
within 15 milliseconds for the same chart data.
Wow- I'm happy to see someone using PDF be worried about performance ( hopefully
more people will also make an effort to keep information along with pictures
in the final product ). Unless itext folks know the answer offhand, and eve if
they do,
if you have used some tools to do this much profiling,
has you tried to dig down a little farther or does it just go to native methods?
I guess you may be able to do all your drawing on the faster object and then
just copy pixels. It is possible the arc implementation relies on a lot of (
slow )
trig functions. Java is supposed to be portable to the last bit and this can
make
trig slow and maybe Sun has optimized something for incremental calls.
I dunno but with those kinds of speed differences you may be able to
use the faster one for arc drawing and then move the pixels just as you
would from anyother buffer. Note also that java is awful with memory
management. And, small changes of parameters like size can make a big speed
diference if you start thrashing a lower level memory cache. So, this speed
difference may not be due to classes per se but some apparently trivial
or irrelevant change in your code.
fwiw, if you find a specific cause or fix please pass it along.
This time difference is too vast, and inturn charts in PDF output takes
lot of time to draw. So can anyone tell me the reason behind this? or its
better if anyone can suggest me the alternative solution for this.
Any help will be appriciated. And Thanks in advance.
Thanks & Regards,
Mihir Brahmbhatt.
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
_________________________________________________________________
Hotmail: Powerful Free email with security by Microsoft.
http://clk.atdmt.com/GBL/go/171222986/direct/01/
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/