wip: followup for bomb search algo

- Use 64 indicies for chunking batch reads
- Remove unused function
- Bump version to 0.2.4
This commit is contained in:
Janek
2024-04-16 13:47:50 +02:00
parent 8cf6664c4b
commit 2c7ba14ced
4 changed files with 4 additions and 14 deletions

View File

@@ -42,8 +42,8 @@ impl CsData {
if self.bomb_dropped {
// If the bomb is dropped, do a reverse entity list loop with early exit when we found the bomb.
// We search in chunks of 512 indexes
for chunk in &(0..=self.highest_index).rev().into_iter().chunks(512) {
// We search in chunks of 64 indexes
for chunk in &(0..=self.highest_index).rev().into_iter().chunks(64) {
// data vec: (address, index, entity_identity_ptr, designer_name_ptr, designer_name_buff)
let mut data_vec: Vec<(u64, i32, u64, u64, [u8; 2])> = chunk
.map(|idx| (0u64, idx, 0u64, 0u64, [0u8; 2]))