valhalla-wasm API
    Preparing search index...

    Interface WasmMemoryOptions

    Per-instance WebAssembly linear memory. MiB means 1,048,576 bytes.

    interface WasmMemoryOptions {
        initialMiB?: number;
        maximumMiB?: number;
    }
    Index
    initialMiB?: number

    Initial allocation in whole MiB, at least 64 and no greater than maximumMiB. Defaults to 128 in browsers, 256 in Node, 64 in Cloudflare. Set explicitly when maximumMiB is below the host's default initial allocation.

    maximumMiB?: number

    Hard growth ceiling in whole MiB, up to 1024. Default 512 in browser/Node, 96 in Cloudflare. Includes C++ heap, stack and static data; excludes JavaScript and total process/isolate memory. Fixed for the instance's lifetime.