Skip to content

Commit

Permalink
feat: enable simd128 feature
Browse files Browse the repository at this point in the history
Restults in a >2x speedup on my machine; AFAIK it's supported on all supported runtimes (deno since 1.09 - which this library doesn't work with anyway - and node since 16.4.0 which is already after EOL)
  • Loading branch information
oplik0 committed Apr 11, 2024
1 parent 4061d69 commit 995ccac
Show file tree
Hide file tree
Showing 3 changed files with 394 additions and 405 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]
},
"tasks": {
"wasmbuild": "deno run --allow-env --allow-run --allow-read --allow-write --allow-net jsr:@deno/wasmbuild@0.17.1 --out ./lib/_wasm --project scrypt-wasm --sync"
"wasmbuild": "RUSTFLAGS='-C target-feature=+simd128' deno run --allow-env --allow-run --allow-read --allow-write --allow-net jsr:@deno/wasmbuild@0.17.1 --out ./lib/_wasm --project scrypt-wasm --sync"
},
"fmt": {
"exclude": [
Expand Down
3 changes: 3 additions & 0 deletions lib/_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ lto = true

[features]
default = []

[package.metadata.wasm-pack.profile.release]
wasm-opt = ['--enable-simd']
Loading

0 comments on commit 995ccac

Please sign in to comment.