Mirror von
https://github.com/Chaoscaot/schemsearch
synchronisiert 2024-11-16 17:00:14 +01:00
Add AVX2 Dependency
Dieser Commit ist enthalten in:
Ursprung
00e3d6fd0f
Commit
277d833da2
@ -10,3 +10,4 @@ license = "AGPL-3.0-or-later"
|
|||||||
hematite-nbt = "0.5.2"
|
hematite-nbt = "0.5.2"
|
||||||
serde = "1.0.152"
|
serde = "1.0.152"
|
||||||
schemsearch-files = { path = "../schemsearch-files" }
|
schemsearch-files = { path = "../schemsearch-files" }
|
||||||
|
manual-avx2 = { git = "https://github.com/Chaoscaot/manual-avx2", version = "0.1.0" }
|
||||||
|
@ -88,6 +88,12 @@ pub fn search(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for index in (0..schem_data.len()).step_by(8) {
|
||||||
|
let pattern_data_slice = schem_data[index..index + 8];
|
||||||
|
let data = manual_avx2::vec_i::VecInteger::new_i32(&(index..index + 8).map(|i| schem_data[i]).collect::<[i32; 8]>());
|
||||||
|
}
|
||||||
|
|
||||||
let matching_percent = matching as f32 / pattern_blocks;
|
let matching_percent = matching as f32 / pattern_blocks;
|
||||||
if matching_percent >= search_behavior.threshold {
|
if matching_percent >= search_behavior.threshold {
|
||||||
matches.push(Match {
|
matches.push(Match {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren