pub struct StandardHashTable { /* private fields */ }Expand description
Baseline hash table wrapping std::collections::HashMap.
Used for comparison benchmarks against ElasticHashTable.
Implementations§
Source§impl StandardHashTable
impl StandardHashTable
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
Trait Implementations§
Source§impl DedupHashTable for StandardHashTable
impl DedupHashTable for StandardHashTable
Source§fn insert(&mut self, hash: [u8; 32], offset: u64) -> Option<u64>
fn insert(&mut self, hash: [u8; 32], offset: u64) -> Option<u64>
Inserts a hash->offset mapping. Read more
Source§fn get(&self, hash: &[u8; 32]) -> Option<u64>
fn get(&self, hash: &[u8; 32]) -> Option<u64>
Looks up a hash and returns the associated offset. Read more
Source§fn load_factor(&self) -> f64
fn load_factor(&self) -> f64
Returns the current load factor (entries / capacity). Read more
Source§fn memory_bytes(&self) -> usize
fn memory_bytes(&self) -> usize
Returns the total memory usage in bytes. Read more
Source§fn stats(&self) -> TableStats
fn stats(&self) -> TableStats
Returns performance statistics for analysis and tuning.
Source§impl Default for StandardHashTable
impl Default for StandardHashTable
impl Sync for StandardHashTable
Auto Trait Implementations§
impl !Freeze for StandardHashTable
impl !RefUnwindSafe for StandardHashTable
impl Send for StandardHashTable
impl Unpin for StandardHashTable
impl UnsafeUnpin for StandardHashTable
impl UnwindSafe for StandardHashTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more