Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
11082 commits behind the upstream repository.
user avatar
Sylvain Henry authored
Use `mkConstrTag` to explicitly pass the constructor tag instead of
using `mkConstr` which queries the tag at runtime by querying the index
of the constructor name (a string) in the list of constructor names.

Perf improvement:

    T16577(normal) ghc/alloc 11325573876.0  9249786992.0 -18.3% GOOD

Thanks to @sgraf812 for suggesting an additional list fusion fix during
reviews.

Metric Decrease:
    T16577
887eb6ec
History