Skip to content

Enable simd#115

Open
joeky888 wants to merge 1 commit intobokuweb:masterfrom
joeky888:simd
Open

Enable simd#115
joeky888 wants to merge 1 commit intobokuweb:masterfrom
joeky888:simd

Conversation

@joeky888
Copy link
Copy Markdown

Modern CPUs support simd, so let's enable it by default. However, this will require newer nodejs runtime (>=16.4) otherwise you'll get this error: wasm compile failed: CompileError: WebAssembly.instantiate(): Compiling function #3 failed: Invalid opcode (enable with --experimental-wasm-simd).

This should make zstd faster.

Signed-off-by: Joeky <[email protected]>
@bokuweb
Copy link
Copy Markdown
Owner

bokuweb commented Jun 19, 2023

@joeky888 Cool. Looks great.If you have a benchmark at your local, please let me know?

@joeky888
Copy link
Copy Markdown
Author

Surprisingly, no. I was unable to get a decent benchmark, the results are very close to each other, and the CPU usage is also almost identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants