Reduce the deepness of the word position document ids

This helps reduce the number of allocations.
This commit is contained in:
Kerollmops
2020-07-07 12:21:22 +02:00
parent 7178b6c2c4
commit b12bfcb03b
2 changed files with 27 additions and 29 deletions

View File

@ -34,6 +34,7 @@ pub type SmallVec16<T> = smallvec::SmallVec<[T; 16]>;
pub type BEU32 = heed::zerocopy::U32<heed::byteorder::BE>;
pub type DocumentId = u32;
pub type AttributeId = u32;
pub type Position = u32;
#[derive(Clone)]
pub struct Index {