| View previous topic :: View next topic |
| Author |
Message |
Jud McCranie Guest
|
Posted: Wed Oct 29, 2003 12:00 am Post subject: RichEdit very slow |
|
|
I'm using a tRichEdit, and it is very slow to come up if the number of lines
is large. For 14,000 lines, it takes about 12 seconds for the screen to
come up on a 2.4 GHz P4. I have the text I want to put into the RichEdit in
a tStringList and I assign RichEdits.lines to it. That is what takes so
much time. (Adding the lines individually takes about the same amount of
time.)
Is there a way to make this faster on a RichEdit?
TIA
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Wed Oct 29, 2003 12:18 am Post subject: Re: RichEdit very slow |
|
|
On 28 Oct 2003, "Jud McCranie" <judmccr (AT) bellsouth (DOT) net> wrote:
| Quote: | I'm using a tRichEdit, and it is very slow to come up if the number of
lines is large.
|
You'll find that
RichEdit1.Text := StringList.Text;
is much faster than
RichEdit1.Lines.Assign(StringList);
or
RichEdit1.Lines.Text := StringList.Text;
--
-Mike
|
|
| Back to top |
|
 |
Jud McCranie Guest
|
Posted: Wed Oct 29, 2003 4:16 am Post subject: Re: RichEdit very slow |
|
|
| Quote: | You'll find that
RichEdit1.Text := StringList.Text;
is much faster than ...
|
Thanks, that's exactly what I needed. 0.14 seconnds vs. 11.5 seconds!
|
|
| Back to top |
|
 |
|