Skip to content

Commit

Permalink
SIMD acceleration by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AuracleTech committed Feb 7, 2024
1 parent dcb65c6 commit 9c5d8fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/AuracleTech/jayce"
license = "MIT"

[dependencies]
bytecount = "0.6.3"
bytecount = { version = "0.6.3", features = ["runtime-dispatch-simd"] }
lazy_static = "1.4.0"
regex = "1.8.4"

Expand All @@ -23,5 +23,6 @@ name = "tokenize"
harness = false

[features]
default = ["runtime-dispatch-simd"]
runtime-dispatch-simd = ["bytecount/runtime-dispatch-simd"]
generic-simd = ["bytecount/generic-simd"]
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,18 @@ Token { kind: "comment_line", value: "// Your own language!", pos: (1, 20) }

##### Performances

initialization in `1.83 nanoseconds`
initialization in `1.83 nanoseconds` and tokenization of [29 639](https://github.com/AuracleTech/yuumi) tokens in `3.85 milliseconds`

tokenization of [29 639](https://github.com/AuracleTech/yuumi) tokens in `4.6 milliseconds`
SIMD acceleration enabled by default, modify `Cargo.toml` as follows to disable

```toml
jayce = { version = "X.X.X", default-features = false }
```

##### Changelog

> `7.0.2` is `442%` faster than version `4.0.1` from making everything precompiled
> `9.0.0` is `30%` slower than version `8.1.0` to support custom whitespaces & comments
> `9.0.2` is `5%` faster than version `9.0.1` by enabling SIMD acceleration by default

0 comments on commit 9c5d8fb

Please sign in to comment.