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

Avoid chain() in find_constraint_paths_between_regions(). #64801

Commits on Sep 29, 2019

  1. Avoid chain() in find_constraint_paths_between_regions().

    This iterator can be hot, and chained iterators are slow. The second
    half of the chain is almost always empty, so this commit changes the
    code to avoid the chained iteration.
    
    This change reduces instruction counts for the `wg-grammar` benchmark by
    up to 1.5%.
    nnethercote committed Sep 29, 2019
    Configuration menu
    Copy the full SHA
    5ca99b7 View commit details
    Browse the repository at this point in the history