Page 1 of 1

slow InsertText

Posted: Thu Jan 09, 2020 6:36 am
by i.v.kabanof

I have rtf document with a table, opened in TRichViewEdit.
Lines insertion into the table works fast. Then I insert text into cells with InsertText, or use ApplyStyleConversion on cells, and it takes about 20 seconds to fill the table.
Table size 8 columns * 85 lines, 10 symbols in a cell.
TRichView 12.6.
Can I speed it up somehow ?

Thank you

Re: slow InsertText

Posted: Thu Jan 09, 2020 8:22 am
by Sergey Tkachenko
1) Version 12.6 is an ancient version, many operations were optimized since that.
2) InsertText is an editing method, it was not designed to perform mass operations. Use AddTextNL (or AddNL, if text does not contain tabs and line breaks) to fill the table.