struct ChunkVec<T> {
chunks: Vec<Vec<T>>,
len: usize,
}Expand description
一定数ずつの塊に分けた配列(添字で引ける)。
【2026-10-24】回収の作業用の配列(節点・状態)を 1 本で確保していたため、生存数が 100 万を超えると 約 19MB の連続領域を要し、断片化したヒープ(使用 520MB / 704MB)で確保に失敗してブラウザが落ちた。
Fields§
§chunks: Vec<Vec<T>>§len: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ChunkVec<T>
impl<T> RefUnwindSafe for ChunkVec<T>where
T: RefUnwindSafe,
impl<T> Send for ChunkVec<T>where
T: Send,
impl<T> Sync for ChunkVec<T>where
T: Sync,
impl<T> Unpin for ChunkVec<T>where
T: Unpin,
impl<T> UnsafeUnpin for ChunkVec<T>
impl<T> UnwindSafe for ChunkVec<T>where
T: 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