[Haskell-cafe] How to benckmark a Word64 -> Bool?

Levent Erkok erkokl at gmail.com
Wed Feb 19 18:24:29 UTC 2014


Also, prefer quotRem over divMod as the former is faster. See here:
http://stackoverflow.com/questions/339719/when-is-the-difference-between-quotrem-and-divmod-useful


On Wed, Feb 19, 2014 at 10:19 AM, Gregory Collins
<greg at gregorycollins.net>wrote:

>
> On Wed, Feb 19, 2014 at 9:36 AM, Charles-Pierre Astolfi <cpa at crans.org>wrote:
>
>> So there's a difference, but I'm not sure if it's related to my algorithm
>> or related to IO/RTS.
>
>
> Text.Printf is slower than the C version (and uses String). Use
> Data.ByteString.putStr instead.
>
>
> --
> Gregory Collins <greg at gregorycollins.net>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140219/062d9329/attachment.html>


More information about the Haskell-Cafe mailing list