Class LineBatcher

Hierarchy (View Summary)

Constructors

Properties

batches: readonly Batch<LineLike, BatchEntry<LineLike>, LineBatchStorage>[] = ...

Batches. All batches in this collection are at least partially occupied.

Object pool for batches

changeTracker: ChangeTracker

Changes to objects will be propagated to the change tracker

entryPool: Pool<BatchEntry<LineLike>>

Object pool for batch entries

maxSize: number

Max size of a batch. Unit depends on batcher.

objectBatches: Map<
    LineLike,
    Batch<LineLike, BatchEntry<LineLike>, LineBatchStorage>,
> = ...

For faster lookup of object -> batch.

queuedAdds: BatchEntry<LineLike>[] = []

Newly added entries are queued until all changes are applied to a batch.

Methods