Add support for +RTS/-RTS flags from GHC #65
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enabling these flags allows for tuning the GHC runtime and can dramatically improve build times when a lot of files have to be recompiled, as well as improving performance on large
case
statements, the main benefit is reducing the time spent in the garbage collector.This does require a version of
elm-make
compiled with the-rtsopts
option to allow runtime control, if you try to run it on a version without that enabled you'll get the message:Some further information and related issues here:
The current version of elm-make does allow limited RTS options, for instance, you can use
+RTS -s -RTS
to profile a run.