mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-17 20:28:03 +02:00
Actually use simd/avx optimizations in bytecount crate.
Also update compile script.
This commit is contained in:
parent
4368913d8f
commit
5bd0edbbe1
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -33,6 +33,9 @@ dependencies = [
|
||||
name = "bytecount"
|
||||
version = "0.1.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"simd 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "crossbeam"
|
||||
|
@ -45,7 +45,8 @@ kernel32-sys = "0.2"
|
||||
winapi = "0.2"
|
||||
|
||||
[features]
|
||||
simd-accel = ["regex/simd-accel"]
|
||||
avx-accel = ["bytecount/avx-accel"]
|
||||
simd-accel = ["bytecount/avx-accel", "regex/simd-accel"]
|
||||
|
||||
[profile.release]
|
||||
debug = true
|
||||
|
6
compile
6
compile
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
export RUSTFLAGS="-C target-feature=+ssse3"
|
||||
# export RUSTFLAGS="-C target-cpu=native"
|
||||
cargo build --release --features simd-accel
|
||||
# export RUSTFLAGS="-C target-feature=+ssse3"
|
||||
export RUSTFLAGS="-C target-cpu=native"
|
||||
cargo build --release --features 'simd-accel avx-accel'
|
||||
|
Loading…
x
Reference in New Issue
Block a user