Proposal: change the Bits instance for Bool to align with other basic types and support branchless calculations
David Feuer
david.feuer at gmail.com
Sun Sep 28 19:01:02 UTC 2014
On Sep 28, 2014 2:39 PM, "Edward Kmett" <ekmett at gmail.com> wrote:
> On a more immediate front, I think the small constant factor performance
gain is counter-balanced by the asymptotic hit, and saying 'don't do that
then' is sweeping an asymptotic issue under the rug.
It's not sweeping it under the rug; it's forcing it into the open. Code
that is fast purely by accident, because the programmer happened, without
consideration, to put the arguments in the right order, is code that can
very easily be made slow by accident, when someone changes something they
had no idea was important.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140928/bc1d0219/attachment.html>
More information about the Libraries
mailing list