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

perf(dep_graph): Avoid allocating a set on when the number reads are … #69778

Merged
merged 2 commits into from
Mar 23, 2020

Commits on Mar 6, 2020

  1. perf(dep_graph): Avoid allocating a set on when the number reads are …

    …small
    
    `reserve_and_rehash` takes up 1.4% of the runtime on the `packed-simd`
    benchmark which I believe is due to the number of reads are very low in
    many cases (see rust-lang#50565 for
    instance).
    
    This avoids allocating the set until we start allocating the `reads`
    `SmallVec` but it is possible that a lower limit might be better (not
    tested since the improvement will be hard to spot either way).
    Markus Westerlind committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    c6f1215 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2020

  1. refactor: Add an alias for the SmallVec in dep_graph

    Markus Westerlind committed Mar 7, 2020
    Configuration menu
    Copy the full SHA
    4168c25 View commit details
    Browse the repository at this point in the history