4 ms·
How does laziness cause a slowdown? It merely reorders work done, it doesn't necessarily create more work.
by teiferer 1y ago
How does laziness cause a slowdown? It merely reorders work done, it doesn't necessarily create more work.
- dev_hugepages 1y agoTo do lazyness, you need to accumulate "intermediate computation objects" called thunks. These take space and time to store. See: https://wiki.haskell.org/index.php?title=Thunk https://wiki.haskell.org/index.php?title=Thunk https://wiki.haskell.org/index.php?title=Performance/Strictness https://wiki.haskell.org/index.php?title=Performance/Strictn...