Open mbrubeck opened 4 years ago
Indices into the vectors in HeaderMap are guaranteed to fit within u16 (see #386), but the header::map::{Link, Links} types store them as usize.
HeaderMap
u16
header::map::{Link, Links}
usize
Changing these fields from usize to u16 would reduce memory footprint and might improve cache-friendliness of HeaderMap.
Indices into the vectors in
HeaderMap
are guaranteed to fit withinu16
(see #386), but theheader::map::{Link, Links}
types store them asusize
.Changing these fields from
usize
tou16
would reduce memory footprint and might improve cache-friendliness ofHeaderMap
.