-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eta reduce foldlOf' and related functions
This is done in order to make GHC inliner more eager to inline them and do that earlier. Standard heuristic is to inline function when all arguments are applied. For example this means foldlOf' will be inlined into body of sumOf and this gives GHC more opportunities for optimization Simple benchmark for summong list using sumOf see 8x performance improvement Fixed #1084 Co-authored-by: Ryan Scott <[email protected]>
- Loading branch information
1 parent
738418a
commit 5d5c20b
Showing
2 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters