-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Equal using %record/split_pair%
The std.contract.Equal contract needs to be lazy, which means that it re-implement equality logic in pure Nickel code, which has proven to be very slow (#1930). This commit replaces the field difference operation, implemented using a left fold, by the new builtin operator `%record/split_pair%`, which shows a performance improvement of around 300% for the example of #1930.
- Loading branch information
Showing
3 changed files
with
15 additions
and
40 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