pub struct FastBitReaderBig<R: Read> { /* private fields */ }Expand description
Ultra-fast bit reader for BigEndian streams (~18x faster than standard)
ยงCritical Performance Notice
- This implementation does NOT implement the standard
BitReadtrait to avoid abstraction overhead and enable aggressive optimizations. - API intentionally differs from standard implementations to ensure users are clearly aware they are using an incompatible version.
ยงPerformance Characteristics (Mac mini M4 16GB benchmark)
- Reading 32 bits: ~290 ns (nanoseconds)
- ~18x faster than standard
BitReader
โ ๏ธ Use at your own risk
Implementationsยง
Auto Trait Implementationsยง
impl<R> Freeze for FastBitReaderBig<R>where
R: Freeze,
impl<R> RefUnwindSafe for FastBitReaderBig<R>where
R: RefUnwindSafe,
impl<R> Send for FastBitReaderBig<R>where
R: Send,
impl<R> Sync for FastBitReaderBig<R>where
R: Sync,
impl<R> Unpin for FastBitReaderBig<R>where
R: Unpin,
impl<R> UnsafeUnpin for FastBitReaderBig<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for FastBitReaderBig<R>where
R: UnwindSafe,
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