about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-19 15:31:25 +0000
committerbors <bors@rust-lang.org>2022-08-19 15:31:25 +0000
commit468887ef91e46847dff57b6b234cff0fad17cb71 (patch)
tree49e813da63717690a927445103916508ef9c1342 /compiler/rustc_codegen_llvm/src
parent6c943bad02626dddc5e5135b23c77429b6e4a063 (diff)
parent0d41f9145ce4f884a53fddefe0624060eb22609b (diff)
downloadrust-468887ef91e46847dff57b6b234cff0fad17cb71.tar.gz
rust-468887ef91e46847dff57b6b234cff0fad17cb71.zip
Auto merge of #100209 - cjgillot:source-file-index, r=estebank
Lazily decode SourceFile from metadata

Currently, source files from foreign crates are decoded up-front from metadata.
Spans from those crates were matched with the corresponding source using binary search among those files.

This PR changes the strategy by matching spans to files during encoding. This allows to decode source files on-demand, instead of up-front. The on-disk format for spans becomes: `<tag> <position from start of file> <length> <file index> <crate (if foreign file)>`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions