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

util,assert: improve comparison performance #22258

Closed
wants to merge 1 commit into from

Commits on Aug 13, 2018

  1. util,assert: improve comparison performance

    This adds a smarter logic to compare object keys (including symbols)
    and it also skips the object key comparison for (typed) arrays, if
    possible.
    
    Besides that it adds a fast path for empty objects, arrays, sets and
    maps and fast paths for sets and maps with an unequal size.
    
    On top of that a few functions are now safer to call by using
    uncurryThis and by caching the actual function.
    
    Overall, this is a significant performance boost for comparisons.
    BridgeAR committed Aug 13, 2018
    Configuration menu
    Copy the full SHA
    f86a91f View commit details
    Browse the repository at this point in the history