Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize std.contract.Equal using %record/split_pair% #1988

Merged
merged 1 commit into from
Jul 8, 2024

Commits on Jul 4, 2024

  1. 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.
    yannham committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    058ea17 View commit details
    Browse the repository at this point in the history