Improved cache memory layout

This commit is contained in:
mdecimus
2025-04-13 08:40:40 +02:00
parent 15651c26a1
commit 0568456d29
51 changed files with 716 additions and 590 deletions

View File

@@ -7,7 +7,7 @@
use common::storage::index::{
IndexItem, IndexValue, IndexableAndSerializableObject, IndexableObject,
};
use jmap_proto::types::{collection::Collection, value::AclGrant};
use jmap_proto::types::value::AclGrant;
use store::SerializeInfallible;
use crate::{IDX_CARD_UID, IDX_NAME};
@@ -89,10 +89,6 @@ impl IndexableObject for ContactCard {
+ self.size,
},
IndexValue::LogChild { prefix: None },
IndexValue::LogParent {
collection: Collection::AddressBook,
ids: self.names.iter().map(|v| v.parent_id).collect::<Vec<_>>(),
},
]
.into_iter()
}
@@ -120,14 +116,6 @@ impl IndexableObject for &ArchivedContactCard {
+ self.size,
},
IndexValue::LogChild { prefix: None },
IndexValue::LogParent {
collection: Collection::AddressBook,
ids: self
.names
.iter()
.map(|v| v.parent_id.to_native())
.collect::<Vec<_>>(),
},
]
.into_iter()
}