pub fn load_verified(path: &Path) -> Result<Arc<Bc5dTable>, Bc5dError>Expand description
Load a BC5D table from path, verifying the header (magic, version,
dimensions) and the stored CRC32 exactly as Bc5dTable::load does, with
the parsed result cached process-wide.
A cache hit requires the canonical path, file size, AND a CRC32 over the file’s bytes to match, so ANY change to the content invalidates — including a same-size in-place replacement and single-byte corruption, neither of which a timestamp reliably distinguishes. Corrupt, truncated, or missing files are never cached.
The file is therefore read on every call; only the parse is cached. At the
once-per-request call sites (bridge cards, bridge solve, solve-json,
bc5d.info) that trade is not measurable against the solve itself.