Skip to content

v2.0.8 - Zig fd/path hashing and mmap request hint

Choose a tag to compare

@Preeternal Preeternal released this 11 Jul 20:19
· 45 commits to master since this release

Added

  • Added HashRequest.mmap as an opt-in file hashing hint for stable regular
    local files. The option maps to Zig C ABI v4 ZFH_OPTION_USE_MMAP, is a
    no-op in the default native engine, is ignored for Zig
    descriptor/stream-backed sources, and is rejected by stringHash.

Changed

  • Updated the bundled Zig core integration to zig-files-hash v0.0.7 / C ABI
    v4.
  • The Zig Android engine now hashes local paths through zfh_context_file_hash
    and Android content:// descriptors through zfh_fd_hash, keeping the read
    loop inside Zig when a path or fd is available. The default native Android
    engine still uses platform stream/file-handle hashing.
  • The Zig iOS/macOS bridge now uses zfh_context_file_hash for local paths and
    tries coordinated path/fd hashing for file URLs before falling back to
    NSInputStream streaming. The default iOS native engine still uses the
    platform file-handle implementation.