mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
Adjust SmallVec buffer sizes to account for overhead.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
37afdb0e90
commit
026d756ef4
2 files changed
+3
-3
No files matched your search
@@ -17,8 +17,8 @@ pub type Buffer<const CAP: usize = DEF_STACK_CAP> = SmallVec<[Byte; CAP]>;
|
||||
pub type Slice = [Byte];
|
||||
pub type Byte = u8;
|
||||
|
||||
pub const KEY_STACK_CAP: usize = 128;
|
||||
pub const VAL_STACK_CAP: usize = 512;
|
||||
pub const KEY_STACK_CAP: usize = 128 - 16;
|
||||
pub const VAL_STACK_CAP: usize = 512 - 16;
|
||||
pub const DEF_STACK_CAP: usize = KEY_STACK_CAP;
|
||||
|
||||
#[inline]
|
||||
|
||||
@@ -75,7 +75,7 @@ pub enum SendingEvent {
|
||||
pub type EduBuf = SmallVec<[u8; EDU_BUF_CAP]>;
|
||||
pub type EduVec = SmallVec<[EduBuf; EDU_VEC_CAP]>;
|
||||
|
||||
const EDU_BUF_CAP: usize = 128;
|
||||
const EDU_BUF_CAP: usize = 128 - 16;
|
||||
const EDU_VEC_CAP: usize = 1;
|
||||
|
||||
#[async_trait]
|
||||
|
||||
Reference in new issue
Block a user