BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RichEdit very slow

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Jud McCranie
Guest





PostPosted: Wed Oct 29, 2003 12:00 am    Post subject: RichEdit very slow Reply with quote



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





PostPosted: Wed Oct 29, 2003 12:18 am    Post subject: Re: RichEdit very slow Reply with quote



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





PostPosted: Wed Oct 29, 2003 4:16 am    Post subject: Re: RichEdit very slow Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.