Hi Tim,

> styled text has given me problems w/speed
> My guess would be it's the RTF
••••
Some follow up information.

I believe I've found what appears to be a substantial bottleneck with  
anything but very small text samples. The application I'm working on  
generates the RTF from an editfield, base64 encodes it, inserts it  
into a db, inserts it into another db, refreshes a listbox and then  
writes a text file backup. These are my figures for 100 words, 300  
words, 900 words and 3000 words - all times are ticks.


                        100             300             900             3000

generate RTF    3               43              943             34130
base64          1               1               1               1
Insertdb1               1               1               3               5
Insertdb2               1               1               24              2
listbox refresh 19              75              1077    36889
Write file              2               3               1               1


As you can see the db inserts, base64 encoding and file writing are  
fine.  I haven't checked but I imagine the listbox refresh has a call  
to the RTF which woukd explain it's slowness. The RTF generation is  
the main issue. A 3x increase in words results in a 13 times increase  
in elapsed time.  A 9x increase in words sees a 314x increase in  
elapsed time. A 30x increase in words sees a staggering 11,376x  
increase in elapsed  time.

For my application, word counts of between 500 and 3000 would be  
fairly common so this is a major concern. As much as I thought the  
RTF functions were a dream come true it appears they're more of a  
nightmare.

cheers

kim
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to