Describe the bug
Compiling little projects can take up to 10-15 seconds due to parsing slowness. The generated flamegraph shows bad performance on makeExprParser from megaparsec.
Additional context
This may be due to the extra use of Haskell native lists which are very slow in performance context. So we may replace it with other List-like types such as Sequence, Set, or SortedList.
Describe the bug Compiling little projects can take up to 10-15 seconds due to parsing slowness. The generated flamegraph shows bad performance on
makeExprParser
frommegaparsec
.Additional context This may be due to the extra use of Haskell native lists which are very slow in performance context. So we may replace it with other List-like types such as
Sequence
,Set
, orSortedList
.