diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-12-11 09:06:51 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-12-12 08:38:08 +1100 |
| commit | 0f68749260d04b61dfe2b38dbc423aefe2914a58 (patch) | |
| tree | 272c64f618d7b60c99b5795d749440e5e5ce0142 /src/libstd/sys/wasm/stack_overflow.rs | |
| parent | b755501043d5b27b39f94bcadd57c8d5dedfd6ba (diff) | |
| download | rust-0f68749260d04b61dfe2b38dbc423aefe2914a58.tar.gz rust-0f68749260d04b61dfe2b38dbc423aefe2914a58.zip | |
Use a `newtype_index!` within `Symbol`.
This shrinks `Option<Symbol>` from 8 bytes to 4 bytes, which shrinks `Token` from 24 bytes to 16 bytes. This reduces instruction counts by up to 1% across a range of benchmarks.
Diffstat (limited to 'src/libstd/sys/wasm/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
