Repository navigation
GlyphPack v0.2.2 — faster encoding and reusable buffers (beta)
Pre-releaseBeta prerelease. For production, use GlyphPack 1.0.0 or later.
Faster encoding with the same format and decoder bytes.
- Borrow message, digest and sample slices instead of copying the input; retain static mask priorities and rank only the needed shortlist.
- Use 32-bit carry chains for mask scoring while preserving mask choices, tie order, candidate counts and encoded bytes.
- Add
dense16_into,encode_units_intoandencode_text_intoto reuse Rust output capacity. Validation errors leave the previous contents intact. - Reuse browser encoder output, convert UTF-16 with native
TextDecoder, and use the existing standard SIMD128 BLAKE3 implementation in the optional workbench encoder. - Add explicitly opt-in native exact-search parallelism with
--features parallel-encoder, capped at four workers. Default builds remain serial.
The decoder API, verification defaults and distribution module bytes are unchanged. Chrome 109+ and offline file:// remain supported. The optional site encoder can be built without SIMD with GLYPHPACK_ENCODER_SIMD=0.
Validation covers the frozen v0.2.1 reference, all three verification modes and native output representations, digest/sampling/extended-header boundaries, reusable buffers, official BLAKE3 vectors, all 63 decoder profiles, native ARM64/x64, Rust 1.85, Node 20/22, and actual Chrome 109/Chromium 156 site and offline tests.
Measurements use only deterministic public fixtures. Complete-call results include the chosen hash and mask search. Local Chromium 156/ARM64 and independent GitHub Chromium/x64 results are reported separately; the raw sample archive includes provenance and timing boundaries. Warm measurements on unpinned hosts are not cross-device guarantees.
For secure random 1 MiB encoding, the three-process local campaign measured 2.28× sampled (36.3 → 15.9 ms) and 1.40× exact (175.3 → 125.5 ms). The independent x64/Chromium 153 campaign measured 2.14× and 1.37×. Default native exact encoding improved 1.04×; opt-in parallel exact encoding improved 1.46× in a separate campaign. All settings, run ranges and slower cases are retained in the reports. The compact CSV has seven representative rows.
Live workbench · Performance and measurements
Start with standalone.html for an offline example, default.min.mjs for secure defaults, or full.min.mjs for all twelve runtime combinations. Native Linux CLI archives are statically linked. The web ZIP and npm tarball include notices; check SHA256SUMS after downloading.