<div dir="ltr">Also, prefer quotRem over divMod as the former is faster. See here: <a href="http://stackoverflow.com/questions/339719/when-is-the-difference-between-quotrem-and-divmod-useful">http://stackoverflow.com/questions/339719/when-is-the-difference-between-quotrem-and-divmod-useful</a></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 10:19 AM, Gregory Collins <span dir="ltr"><<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class=""><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 9:36 AM, Charles-Pierre Astolfi <span dir="ltr"><<a href="mailto:cpa@crans.org" target="_blank">cpa@crans.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So there's a difference, but I'm not sure if it's related to my algorithm or related to IO/RTS.</blockquote>

</div><br></div>Text.Printf is slower than the C version (and uses String). Use Data.ByteString.putStr instead.<span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Gregory Collins <<a href="mailto:greg@gregorycollins.net" target="_blank">greg@gregorycollins.net</a>>
</font></span></div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>