composewell / unicode-transforms

Fast Unicode normalization in Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve compilation time of DecompositionsK.hs

harendra-kumar opened this issue · comments

The compatibility decompositions file is close to 6000 lines long and takes 20-30 seconds to compile on my machine. It would be nice if this time can be reduced either by looking at why ghc takes so long and optimizing that, if that's not possible we can put the db in a file instead of encoding this in Haskell.

Another thought, this file also includes Decompositions.hs, instead of duplicating that it would be nice if that can be shared somehow without impacting performance.

commit 1daad76 splits DecompositionsK.hs and commit 596d278 attempts to reduce the bitarray sizes to be lighter on the compiler and improve the compilation speed.