about summary refs log tree commit diff
path: root/src/librustdoc/html/render.rs
diff options
context:
space:
mode:
authorArlo Siemsen <arsiem@microsoft.com>2020-04-05 01:43:44 -0700
committerArlo Siemsen <arsiem@microsoft.com>2020-04-05 01:43:44 -0700
commit4cdceda5a355ab5c4732b425b4449d9707084fdc (patch)
treee47937f3da985524e165de159cfc38968a13ae4f /src/librustdoc/html/render.rs
parent853c4774e26ea97b45fe74de9a6f68e526784323 (diff)
downloadrust-4cdceda5a355ab5c4732b425b4449d9707084fdc.tar.gz
rust-4cdceda5a355ab5c4732b425b4449d9707084fdc.zip
Fix performance regression in debuginfo file_metadata.
Finding the `SourceFile` associated with a `FileName` called `get_source_file` on
the `SourceMap`, which does a linear search through all files in the `SourceMap`.

This resolves the issue by passing the SourceFile in from the caller (which already
had it available).
Diffstat (limited to 'src/librustdoc/html/render.rs')
0 files changed, 0 insertions, 0 deletions