<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: output speed up</title><link>https://sourceforge.net/p/parserbuilder/feature-requests/2/</link><description>Recent changes to 2: output speed up</description><atom:link href="https://sourceforge.net/p/parserbuilder/feature-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sat, 31 May 2003 05:17:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/parserbuilder/feature-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>output speed up</title><link>https://sourceforge.net/p/parserbuilder/feature-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Richard Mustakos</dc:creator><pubDate>Sat, 31 May 2003 05:17:51 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net60aceb55ba9c75f38016881ec09ab6ffb9c03ae9</guid></item></channel></rss>