mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Shrink Path
to 16 bytes
Thanks to the observation (supported by counting) that the vast majority paths have neither generics no type anchors, and thanks to a new datastructure `ThinVecWithHeader` that is essentially `(T, Box<[U]>)` but with the size of a single pointer, we are able to reach this feat. This (together with `ThinVecWithHeader`) makes the possibility to shrink `TypeRef`, because most types are paths.
This commit is contained in:
parent
bccf0062b7
commit
061e5d7f71
13 changed files with 596 additions and 107 deletions
|
@ -10,6 +10,7 @@ pub mod non_empty_vec;
|
|||
pub mod panic_context;
|
||||
pub mod process;
|
||||
pub mod rand;
|
||||
pub mod thin_vec;
|
||||
pub mod thread;
|
||||
|
||||
pub use always_assert::{always, never};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue