Help with optimization/profiling
Haskell Community [Unofficial]
April 25, 2026
I’d start looking at Core. Clearly the generateImage and encodePallettedPng functions are inlined. Perhaps they do more work than necessary.
I’d also check if the allocations make sense to you. Perhaps some intermediate structures are allocated which can be eliminated.
Discussion in the ATmosphere