import * as usearch from 'usearch';3.0.0-rc.1 · 4c3e5023
An executor and an index are each built through the residency they drive, so a direct new usearch.Executor() or new usearch.DenseIndex() throws and names the factories instead.
An index runs its verbs only on an executor of its own residency, and arena.describe() reports where an arena’s outputs live as { residency, device }, with devicenull for host pages.
initRam shards over the named NUMA nodes, absent spreading the shards over every node, and initVram over the named CUDA ordinals, absent taking one free device.
An NVMe index is never initialized, only served in place from a checkpoint, read-only.
An index’s free() waits for every deferred call naming it, and a freed index refuses every later call.
API
Types
ResidencyWhere an executor computes, and so where the arenas it makes keep their memory.