CacheRecord
A packed model as stored: the header and the deflated bytes.
Defined in: engine/src/worker/cache.ts:187
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
body | Blob | The deflated bytes. | engine/src/worker/cache.ts:191 |
head | Record<string, unknown> | packEntity's header. | engine/src/worker/cache.ts:189 |
unpackEntity()
Rebuild an entity from packEntity's output. Every array is copied out of bytes, unless opts.views: then a sparse model's bricks are views into bytes (which the entity then owns; one allocation per brick rather than one copy each, which is what the generator pool does with the packed entities its...
CacheStore
The storage under the model cache: records and their per-entry bookkeeping, written together. IndexedDB implements it in the browser; memoryCacheStore in tests.