about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-05-06 11:47:03 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-05-20 18:56:53 +1000
commitc5d94017569713c12a7e3d260cb4cd0a02b26372 (patch)
tree7df7cdc63a9f1db64163458e4ebc8abc941c1bea /src/test/debuginfo/enum-thinlto.rs
parent128b4c8035fc788b78157d4e1975cda0f25ce599 (diff)
downloadrust-c5d94017569713c12a7e3d260cb4cd0a02b26372.tar.gz
rust-c5d94017569713c12a7e3d260cb4cd0a02b26372.zip
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 #60467 improved this code somewhat; this is a further
improvement.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions