strict bits of datatypes

Adrian Hey ahey at iee.org
Mon Mar 19 12:49:14 EDT 2007


Simon Peyton-Jones wrote:
> | This reminds me of something I discovered about using strict fields in
> | AVL trees (with ghc). Using strict fields results in slower code than
> | doing the `seq` desugaring by hand.
> 
> That is bad.  Can you send a test case that demonstrates this behaviour?

OK, I'll try to put something reasonably simple together to test this
again. Last time I tested it was a probably a couple of years ago so
what I said might not be true of current ghc. The effect wasn't huge
in any case (using strict constructors was about 5% slower).

Regards
--
Adrian Hey



More information about the Haskell-prime mailing list