
19 Mar
2007
19 Mar
'07
12:49 p.m.
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