« Return to Thread: Slow parsing of rtf files even if they are small.

Re: Slow parsing of rtf files even if they aresmall.

by Paulo Soares :: Rate this Message:

Reply to Author | View in Thread

Post a small standalone program with all the required rtf files. I'll run it
in C# and java and compare the times. It may be a porting issue or not.

Paulo

----- Original Message -----
From: "Søren Laursen" <sl@...>
To: <itext-questions@...>
Sent: Wednesday, May 14, 2008 11:18 PM
Subject: Re: [iText-questions] Slow parsing of rtf files even if they
aresmall.


Merging 4-5 files where the size is 618 chars (on an average) it takes up to
5 seconds. I have to mention than it is a iterative merge because I have to
check if the merged size is larger than 3K (database restrictions) before I
add a new document.



Tried a new approach where I set up RtfWrite2 in one method and in another I
add rtf document and I get the current rtf document. This fails because of
the streams. I guess that if I continued to add to an existing rtf document
I would save some time by not have to parse the merge rtf from the previous
run.



The memory use just increase. The first version of the program I used
RichTextBox and copy and pasted the rtf text, the program usually  got
executed in about 20 minutes and used 32 mb, now we are talking about 12-14
hours! I had to drop the RichTextBox approach because sometimes it fails and
return a empty rtf files. Itext solves this problem but the runtime and
memory use is a big concern.



Søren


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

 « Return to Thread: Slow parsing of rtf files even if they are small.

LightInTheBox - Buy quality products at wholesale price!