Also report char segment size

This commit is contained in:
Raymond Hill 2025-07-22 11:19:16 -04:00
parent a94b4e12a9
commit 348f151e36
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -586,6 +586,7 @@ class HNTrieContainer {
dumpInfo() {
return [
`Buffer size (Uint8Array): ${this.buf32[CHAR1_SLOT].toLocaleString('en')}`,
` Char segment size: ${(this.buf32[CHAR1_SLOT] - this.buf32[CHAR0_SLOT]).toLocaleString('en')}`,
`WASM: ${this.wasmMemory === null ? 'disabled' : 'enabled'}`,
].join('\n');
}