[Haskell-cafe] Cost: (:) vs head
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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe