Skip to content

Compiling many instances derived using generics is slow and uses lots of memory

In the spirit of #19203, here's some code that I have trouble with: Compiling this 310 line module with optimisation on takes several minutes, and the GHC process uses over 10G of memory.

Environment

  • GHC version used: 8.10.2
Edited by Olle Fredriksson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information