mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-11-05 05:54:02 +01:00
Add SIMD (Single Instruction, Multiple Data) optimizations to the compare.c file to improve performance. This includes vectorization flags and architecture-specific optimizations to enhance the processing of data in the comparison function. Additionally, the implementation now dynamically selects an optimized code path based on the size of the pattern data, ensuring efficient execution for various scenarios. By Lixfel
11 lines
228 B
Rust
Executable File
11 lines
228 B
Rust
Executable File
use cc;
|
|
|
|
fn main() {
|
|
cc::Build::new()
|
|
.file("src/compare.c")
|
|
.flag("-ftree-vectorize")
|
|
.flag("-march=native")
|
|
.flag("-mtune=native")
|
|
.flag("-ffast-math")
|
|
.compile("compare");
|
|
} |