drupflare/worker - v1.0.0
    Preparing search index...

    Function elideZeroPages

    • Drops all-zero pages from a heap.

      Measured on a booted Drupal heap: 80,543,744 bytes goes to 39,911,590 raw, so slightly over half the image is pages that a fresh instance already has. Compression is a SEPARATE and conditional decision -- elision is free and always correct, compression trades boot CPU for bytes at rest and only pays when the measurement says the bytes are needed.

      Parameters

      • heap: Uint8Array
      • pageBytes: number = WASM_PAGE_BYTES

      Returns ElidedHeap