Kind of answered my own question by reviewing the
RandomAccessFileOrArray class.  On our Solaris 9
system the reads change from 1 byte at a time to
a 2048 byte buffer if I pass the filename as
file:/opt/xx.pdf instead of /opt/xx.pdf

This cuts the runtime for large documents (300-800
pages) almost in half for us.

Thanks,
-Carl Edwards

>  -----Original Message-----
>  From: Carl Edwards 
>  Sent: Wednesday, October 05, 2005 3:03 PM
>  To: [email protected]
>  Subject: [iText-questions] Runtime performance question
>  
>  
>  Hi All,
>  
>  I am using pdftk which in turn uses iText running on an
>  older Sparc and was trying to improve the runtime performance.
>  
>  It seems that most of the time is spent doing 1 byte at
>  a time reads.  I cannot see a different PdfReader constructor
>  or an option to do chunked reading ... did I miss it or is
>  this not possible?
>  
>  Thanks and any other suggestions (besides buy a new machine :-)
>  are welcome.
>  
>  Thanks
>  -Carl Edwards
>  
>  
>  -------------------------------------------------------
>  This SF.Net email is sponsored by:
>  Power Architecture Resource Center: Free content, downloads, 
>  discussions,
>  and more. http://solutions.newsforge.com/ibmarch.tmpl
>  _______________________________________________
>  iText-questions mailing list
>  [email protected]
>  https://lists.sourceforge.net/lists/listinfo/itext-questions
>  


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to