I updated the vanilla.js script and README to clarify that the key and value sizes are in bytes.
I haven't tried calling into WebAssembly so I don't know. Perhaps the bridging cost would be similar or slightly better (or who knows, worse)? Does WASM have SIMD? Do you know of any areas where WASM would outdo the current Javascript implementation?
For times like these, I wish server-side Javascript itself had SIMD, and access to CPU builtins, such as popcount etc.
I updated the vanilla.js script and README to clarify that the key and value sizes are in bytes.
I haven't tried calling into WebAssembly so I don't know. Perhaps the bridging cost would be similar or slightly better (or who knows, worse)? Does WASM have SIMD? Do you know of any areas where WASM would outdo the current Javascript implementation?
For times like these, I wish server-side Javascript itself had SIMD, and access to CPU builtins, such as popcount etc.