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 symbol interning in file_metadata. #60973

Merged
merged 1 commit into from
May 22, 2019

Commits on May 20, 2019

  1. Avoid symbol interning in file_metadata.

    This commit changes `created_files` so it uses strings directly as keys,
    rather than symbols derived from the strings. This avoids the cost of
    having to do the hash table lookups to produce the symbols from the
    strings.
    
    The commit also uses `entry` to avoid doing a repeated hash table lookup
    (`get` + `insert`).
    
    Note that PR rust-lang#60467 improved this code somewhat; this is a further
    improvement.
    nnethercote committed May 20, 2019
    Configuration menu
    Copy the full SHA
    c5d9401 View commit details
    Browse the repository at this point in the history