Skip to content

Commit

Permalink
Bump smallvec len
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Nov 25, 2024
1 parent bac5bdc commit 3103ee0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bitfield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ use typenum::Unsigned;

/// Maximum number of bytes to store on the stack in a bitfield's `SmallVec`.
///
/// The default of 32 bytes is enough to take us through to ~500K validators, as the byte length of
/// attestation bitfields is roughly `N // 32 slots // 64 committes // 8 bits`.
pub const SMALLVEC_LEN: usize = 32;
/// The default of 32 bytes is enough to take us through to ~1.31M validators,
/// as the byte length of attestation bitfields is roughly `N // 32 slots // 64
/// committes // 8 bits`.
pub const SMALLVEC_LEN: usize = 80;

/// A marker trait applied to `Variable` and `Fixed` that defines the behaviour of a `Bitfield`.
pub trait BitfieldBehaviour: Clone {}
Expand Down

0 comments on commit 3103ee0

Please sign in to comment.