Menu

#2 output speed up

open
nobody
None
5
2003-05-31
2003-05-31
No

If you swap

fOutputStream : TStringStream;

for

fOuputList : TStringList;

and just add the text lines onto the stringlist, then
text output takes roughly 3% or less of the time needed
with the TStreamString. For what I'm doing, where I
write out entering and exiting every production and
before I check and then again if I found a production,
my throughput went from around 8-10 lines per second to
finishing a 2000+ line file in less than a half a
second with all output turned on. To get to all the
text quickly, just use
Memo1.Text := fOutputList.Text;
You don't have to add #13#10 to the strings, each added
one gets it's own line.
Thanks
RM

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.