Skip to content

Commit

Permalink
Bump smallvec len to 128 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner authored Dec 5, 2024
1 parent d1acd77 commit ed1405b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ssz/src/bitfield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ pub enum Error {

/// 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;
/// 128 bytes is enough to take us through to ~2M active validators, as the byte
/// length of attestation bitfields is roughly `N // 32 slots // 64 committes //
/// 8 bits`.
pub const SMALLVEC_LEN: usize = 128;

/// 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 ed1405b

Please sign in to comment.