mirror of
https://github.com/Chaoscaot/schemsearch.git
synced 2025-12-15 12:07:06 +01:00
build: Add SIMD optimizations to compare.c
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
This commit is contained in:
4
schemsearch-lib/build.rs
Normal file → Executable file
4
schemsearch-lib/build.rs
Normal file → Executable file
@@ -3,5 +3,9 @@ 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");
|
||||
}
|
||||
Reference in New Issue
Block a user