Kim Kohen wrote: > I've been working away on a project using the new RTF functions and > Base64Encoding to save styled text into a database. It's been going > amazingly well with small amounts of text (up to a few hundred words) > but today I tried it with a couple of thousand words and it ground to > a halt. Functions that take fractions of a second with small texts > are taking (literally) 30 or more seconds with 2000 words. Sometime I > simply get beachballed and have to force quit. > > I'm wondering if the problem is likely to be with the RTF functions > or the Base64Encoding? I'm going to strip out the encoding this > afternoon but I was hoping someone might have some insight into where > the likely problem lies.
The RTF functionality is broken in 2007r2 which I am sure you are aware of and you should be testing against the latest beta since they fixed the feedback report I opened against it. Having said that, if you are having scalability problems with the new RTF functionality, I would suggest opening a feedback report and give them sample input documents that show the speed slow down. Again, test it against the latest beta. Having personally written an RTF parser for the FTC, I know from experience that parsing RTF data is not the fastest thing to do because of the convoluted nature of what Microsoft implemented for RTF, but you definitely should not see times like you are describing. It should zip through 2000 words in a second with no problem. When you see long delays, it is probably an indication that you hit a bug in the parser and it fumbling with the data in strange ways. As a scalability test I thought it would be ironic to take the Microsoft RTF Specification (it is a fairly lengthy document) and save it to the RTF format and then input it into the EditField via RTF just to see if it could handle it and how long it would take, but I have better fish to fry at the moment. So if someone wants to take the time to do that, I would be interested in the results (using the latest beta). Base64 encoding is pretty fast and I think that it a non-issue in terms of speed. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
