]> git.lizzy.rs Git - rust.git/commit
Always inline simple BytePos and CharPos methods.
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 2 May 2018 23:12:26 +0000 (09:12 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Thu, 3 May 2018 03:25:18 +0000 (13:25 +1000)
commite740b97be699c9445b8a1a7af6348ca2d4c460ce
tree608299de495af2bd1cc48e283640f61c9635c572
parentf76f6fbdea497c3cb536e33387f405cc74b99b76
Always inline simple BytePos and CharPos methods.

Because they are (a) trivial, and (b) super hot.

This change speeds up most rustc-benchmarks, the best by 5%.
src/libsyntax_pos/lib.rs