You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update doc:
* aarch64 support is automatically enabled since Rust 1.61
* changelog
* update library doc from readme
Cargo release config:
* cargo-release: remove replacements that are no longer needed
* only allow releases from main branch
Copy file name to clipboardExpand all lines: README.md
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This library has been thoroughly tested with sample data as well as fuzzing and
14
14
*`basic` API for the fastest validation, optimized for valid UTF-8
15
15
*`compat` API as a fully compatible replacement for `std::str::from_utf8()`
16
16
* Supports AVX 2 and SSE 4.2 implementations on x86 and x86-64
17
-
* 🆕 ARM64 (aarch64) SIMD is supported with Rust 1.59 and 1.60 (use feature `aarch64_neon`) and Nightly (no extra feature needed)
17
+
* 🆕 ARM64 (aarch64) SIMD is supported since Rust 1.61
18
18
* 🆕 WASM (wasm32) SIMD is supported
19
19
* x86-64: Up to 23 times faster than the std library on valid non-ASCII, up to four times faster on ASCII
20
20
* aarch64: Up to eleven times faster than the std library on valid non-ASCII, up to four times faster on ASCII (Apple Silicon)
@@ -31,11 +31,6 @@ Add the dependency to your Cargo.toml file:
31
31
[dependencies]
32
32
simdutf8 = "0.1.4"
33
33
```
34
-
For ARM64 SIMD support on Rust 1.59 and 1.60:
35
-
```toml
36
-
[dependencies]
37
-
simdutf8 = { version = "0.1.4", features = ["aarch64_neon"] }
38
-
```
39
34
40
35
Use `simdutf8::basic::from_utf8()` as a drop-in replacement for `std::str::from_utf8()`.
41
36
@@ -85,11 +80,7 @@ the targeted CPU. Use `RUSTFLAGS="-C target-feature=+avx2"` for the AVX 2 implem
85
80
for the SSE 4.2 implementation.
86
81
87
82
### ARM64
88
-
The SIMD implementation is only available on Rust Nightly and Rust 1.59 or later. On Rust Nightly it is now turned on
89
-
automatically.
90
-
To get the SIMD implementation with Rust 1.59 and 1.60 the crate feature `aarch64_neon` needs to be enabled.
91
-
For Rust Nightly this will no longer be required (but does not hurt either). It is expected that the SIMD implementation
92
-
will be enabled automatically starting with Rust 1.61.
83
+
The SIMD implementation is used automatically since Rust 1.61.
93
84
94
85
### WASM32
95
86
For wasm32 support, the implementation is selected at compile time based on the presence of the `simd128` target feature.
@@ -176,4 +167,3 @@ simdjson itself is distributed under the Apache License 2.0.
176
167
177
168
## References
178
169
John Keiser, Daniel Lemire, [Validating UTF-8 In Less Than One Instruction Per Byte](https://arxiv.org/abs/2010.03090), Software: Practice and Experience 51 (5), 2021
0 commit comments