mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-24 17:37:34 +00:00
use smallvec for db query buffering
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
76c75cc05a
commit
3ad6aa59f9
23 files changed
+173
-98
No files matched your search
@@ -4,18 +4,20 @@ use arrayvec::ArrayVec;
|
||||
use conduit::implement;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::{ser, util::or_else};
|
||||
use crate::{keyval::KeyBuf, ser, util::or_else};
|
||||
|
||||
#[implement(super::Map)]
|
||||
#[inline]
|
||||
pub fn del<K>(&self, key: K)
|
||||
where
|
||||
K: Serialize + Debug,
|
||||
{
|
||||
let mut buf = Vec::<u8>::with_capacity(64);
|
||||
let mut buf = KeyBuf::new();
|
||||
self.bdel(key, &mut buf);
|
||||
}
|
||||
|
||||
#[implement(super::Map)]
|
||||
#[inline]
|
||||
pub fn adel<const MAX: usize, K>(&self, key: K)
|
||||
where
|
||||
K: Serialize + Debug,
|
||||
|
||||
Reference in new issue
Block a user