Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable simd #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Enable simd #115

wants to merge 1 commit into from

Conversation

joeky888
Copy link

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 <joeky5888@gmail.com>
@bokuweb
Copy link
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
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.

None yet

2 participants