External Publication
Visit Post

Changing the `Binary` instance for `Double` and `Float`

Haskell Community [Unofficial] March 6, 2026
Source

jaror:

8x speed up

That’s an incredibly specific (and short) case, for an apples-to-apples comparison you need to remove unnecessary laziness from the original. Also I have no idea why data is stored in cons-lists.

jaror:

I think it should be possible to write a more efficient package

And I think there shouldn’t be just one package, there should be a solid default choice that balances power and efficiency, and a bunch of faster libraries that sacrifice power. (pretty much what we already have, except binary could do way more)

Discussion in the ATmosphere

Loading comments...