Re:Building a data compression utility in Haskell using Huff...
by wyager on Thursday July 04, 2024 @05:14PM
(#40878104)
You're doing extremely simple constant arithmetic here. GHC can optimize this type of thing away to nothing as well. Are we talking about contrived examples or real numerical bottlenecks?
That's not strictly true; sometimes a C compiler can optimize away my whole program.