]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #60467 - nnethercote:less-symbol-interning, r=davidtwco
authorMazdak Farrokhzad <twingoow@gmail.com>
Fri, 3 May 2019 14:25:06 +0000 (16:25 +0200)
committerGitHub <noreply@github.com>
Fri, 3 May 2019 14:25:06 +0000 (16:25 +0200)
Avoid repeated interning of static strings.

`file_metadata_raw` interns the strings `"<unknown>"` and `""` very
frequently. This commit avoids that, which reduces the number of symbols
interned significantly and reduces instruction counts by up to 0.5% on
some workloads.


Trivial merge