[Haskell-cafe] Cost: (:) vs head

Jason Dagit dagit at codersbase.com
Sat Sep 11 14:59:15 EDT 2010


On Sat, Sep 11, 2010 at 7:10 AM, michael rice <nowgate at yahoo.com> wrote:

> Hi Baz,
>
> That's quite an analysis, one I'll keep for future reference.
>
> So, my original coding was the fastest. Guess I should stop second guessing
> myself. ;-)
>

I think Bas's point was actually that you should second guess yourself and
use Criterion/ghc-core if you want to know which way is fastest.  On the
other hand, these are microbrenchmarks and should not be taken as
representative of how they will perform inside a larger application.

Evidence is always nice to have :)

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100911/e6e7aa50/attachment.html


More information about the Haskell-Cafe mailing list