<div dir="ltr"><br><br><div class="gmail_quote">On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic <span dir="ltr">&lt;<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 27 May 2010 17:55, Michael Snoyman &lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt; wrote:<br>
&gt; Two comments:<br>
&gt; * The exclamation point seems good enough for attributes. I copied that for<br>
&gt; Hamlet as well.<br>
&gt; * If you&#39;re standardizing on UTF-8, why not support bytestrings? I&#39;m aware<br>
&gt; that a user could shoot him/herself in the foot by passing in non-UTF8 data,<br>
&gt; but I would imagine the performance gains would outweigh this. My recent<br>
&gt; benchmarks on the BigTable benchmark[1] imply a huge performance gap between<br>
&gt; ByteStrings and other contenders.<br>
<br>
</div>Wow, I find it rather surprising that String out-performs Text; any<br>
idea why that is?  I wonder if you&#39;re just using it wrong...<br>
<font color="#888888"><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#888888"><br></font></font></font></blockquote><div>Could be, I&#39;d be very happy if that were the case. All of the benchmarks are available on Github, and the bytestring[1], text[2] and string[3] versions are all rather short.</div>
<div><br></div><div>Michael</div><div><br></div><div>[1] <a href="http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/bytestring.hs">http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/bytestring.hs</a></div>
<div>[2] <a href="http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/text.hs">http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/text.hs</a></div><div>[3] <a href="http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/string.hs">http://github.com/snoyberg/benchmarks/blob/master/bigtable/cgi/string.hs</a></div>
</div></div>