<div dir="ltr"><br><br><div class="gmail_quote">On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic <span dir="ltr"><<a href="mailto:ivan.miljenovic@gmail.com">ivan.miljenovic@gmail.com</a>></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 <<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>> wrote:<br>
> Two comments:<br>
> * The exclamation point seems good enough for attributes. I copied that for<br>
> Hamlet as well.<br>
> * If you're standardizing on UTF-8, why not support bytestrings? I'm aware<br>
> that a user could shoot him/herself in the foot by passing in non-UTF8 data,<br>
> but I would imagine the performance gains would outweigh this. My recent<br>
> benchmarks on the BigTable benchmark[1] imply a huge performance gap between<br>
> 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'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'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>