about summary refs log tree commit diff
path: root/src/test/run-pass/mod_dir_path2.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-18 01:49:13 -0700
committerGitHub <noreply@github.com>2016-10-18 01:49:13 -0700
commit753ea76336be2def223335c63d7b20188651a8c6 (patch)
tree63e0870a006829ad7ad8348c3389013524334f36 /src/test/run-pass/mod_dir_path2.rs
parent3543a0f6020fb16860f471e8651fa05f5709e83a (diff)
parent6a4bb35b70862f33ac2491ffe6c55fb210c8490d (diff)
downloadrust-753ea76336be2def223335c63d7b20188651a8c6.tar.gz
rust-753ea76336be2def223335c63d7b20188651a8c6.zip
Auto merge of #37083 - nnethercote:uleb128, r=eddyb
Inline read_{un,}signed_leb128 and opaque::Decoder functions.

`read_unsigned_leb128` is hot within rustc because it's heavily used
during the reading of crate metadata. This commit tweaks its signature
(and that of `read_signed_leb128`, for consistency) so it can increment
the buffer index directly instead of maintaining its own copy, the
change in which is then used by the caller to advance the index.

This reduces the instruction count (as measured by Cachegrind) for some
benchmarks a bit, e.g. hyper-0.5.0 by 0.7%.
Diffstat (limited to 'src/test/run-pass/mod_dir_path2.rs')
0 files changed, 0 insertions, 0 deletions