Reduce the DocumentId size from 64 to 32bits

This commit is contained in:
Kerollmops 2020-05-19 13:53:31 +02:00
parent 3bca31856d
commit 788e2202c9
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
12 changed files with 33 additions and 32 deletions

View file

@ -12,7 +12,7 @@ use serde::{Deserialize, Serialize};
#[cfg_attr(feature = "zerocopy", derive(AsBytes, FromBytes))]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[repr(C)]
pub struct DocumentId(pub u64);
pub struct DocumentId(pub u32);
/// This structure represent the position of a word
/// in a document and its attributes.