Attempt to fix #80.
Updates also tests to newest elm-test version.
Main optimisation was reordering term and expression order based on popularity. It reduced time a lot. Other changes were related to creating more GC friendly Elm because this is the real problem. There is test in tests/Multiline.elm which parses 11 arguments, every in new line. It takes around 20s on MacBook Pro (down from ~96s). I don't thing we can squash more than that without changing new line parsing logic.
Please try to add Test.only to tests/Multiline.elm to run only performance test and measure parsing time. Really counting on your feedback.
Attempt to fix #80. Updates also tests to newest
elm-test
version.Main optimisation was reordering
term
andexpression
order based on popularity. It reduced time a lot. Other changes were related to creating more GC friendly Elm because this is the real problem. There is test intests/Multiline.elm
which parses 11 arguments, every in new line. It takes around 20s on MacBook Pro (down from ~96s). I don't thing we can squash more than that without changing new line parsing logic.Please try to add
Test.only
totests/Multiline.elm
to run only performance test and measure parsing time. Really counting on your feedback.