Skip to content

Commit

Permalink
reduce initial history value
Browse files Browse the repository at this point in the history
bench: 3511233
  • Loading branch information
MinusKelvin committed Sep 23, 2022
1 parent 4403749 commit 1d663fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frozenight/src/search/ordering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ impl HistoryCounter {

#[inline(always)]
fn decay(&mut self, factor: i32) {
self.count /= factor;
self.count = 1.max(self.count / factor);
}
}

impl Default for HistoryCounter {
fn default() -> Self {
Self {
value: 1_000_000_000,
count: 0,
value: 1_000_000,
count: 1,
}
}
}
Expand Down

0 comments on commit 1d663fb

Please sign in to comment.