<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: output speed up</title><link href="https://sourceforge.net/p/parserbuilder/feature-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/parserbuilder/feature-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/parserbuilder/feature-requests/2/</id><updated>2003-05-31T05:17:51Z</updated><subtitle>Recent changes to 2: output speed up</subtitle><entry><title>output speed up</title><link href="https://sourceforge.net/p/parserbuilder/feature-requests/2/" rel="alternate"/><published>2003-05-31T05:17:51Z</published><updated>2003-05-31T05:17:51Z</updated><author><name>Richard Mustakos</name><uri>https://sourceforge.net/u/rmustakos/</uri></author><id>https://sourceforge.net60aceb55ba9c75f38016881ec09ab6ffb9c03ae9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;If you swap &lt;/p&gt;
&lt;p&gt;fOutputStream : TStringStream;&lt;/p&gt;
&lt;p&gt;for &lt;/p&gt;
&lt;p&gt;fOuputList : TStringList;&lt;/p&gt;
&lt;p&gt;and just add the text lines onto the stringlist, then&lt;br /&gt;
text output takes roughly 3% or less of the time needed&lt;br /&gt;
with the TStreamString.  For what I'm doing, where I&lt;br /&gt;
write out entering and exiting every production and&lt;br /&gt;
before I check and then again if I found a production,&lt;br /&gt;
my throughput went from around 8-10 lines per second to&lt;br /&gt;
finishing a 2000+ line file in less than a half a&lt;br /&gt;
second with all output turned on.  To get to all the&lt;br /&gt;
text quickly, just use &lt;br /&gt;
Memo1.Text := fOutputList.Text;&lt;br /&gt;
You don't have to add #13#10 to the strings, each added&lt;br /&gt;
one gets it's own line.&lt;br /&gt;
Thanks&lt;br /&gt;
RM&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>