-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance regression in v0.48.0.
The change in how `group_by` interacts with variable visibility in release 0.48.0 slowed down the compiler >2x on large programs. It appears that this was due to a a butterfly effect in `rhsVarsAfter`, which caused it to recompute a sub-expression multiple times. To solve this, we move the expression to a `where` clause. As an additional optimization, we remove and expensive unnecessary `nub` in `ruleRHSVars`.
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 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
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