]> git.lizzy.rs Git - rust.git/commit
Extend Printer::buf on demand.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 27 Apr 2018 21:33:34 +0000 (07:33 +1000)
committerNicholas Nethercote <nnethercote@mozilla.com>
Mon, 30 Apr 2018 09:24:24 +0000 (19:24 +1000)
commit989815d5670826078d9984a3515eeb68235a4687
tree96e8f3e49fc64bc30fdca609b028b5613865bf09
parentf76f6fbdea497c3cb536e33387f405cc74b99b76
Extend Printer::buf on demand.

So that 55 entries (at 48 bytes each) don't need to be eagerly
initialized on creation.

This speeds up numerous rust-perf benchmark runs, by up to 3%.
src/libsyntax/print/pp.rs