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.
This commit is contained in:
Nicholas Nethercote 2018-12-11 09:06:51 +11:00
parent b755501043
commit 0f68749260
3 changed files with 46 additions and 22 deletions

View file

@ -24,10 +24,13 @@
#![feature(nll)]
#![feature(non_exhaustive)]
#![feature(optin_builtin_traits)]
#![feature(rustc_attrs)]
#![feature(specialization)]
#![feature(step_trait)]
#![cfg_attr(not(stage0), feature(stdsimd))]
extern crate arena;
#[macro_use]
extern crate rustc_data_structures;
#[macro_use]