Replace hashbrown with ahash

hashbrown is already used in the standard library, but we want the
improved performance of the different hash algorithm.
Using ahash directly conveys this intent more clearly.
This commit is contained in:
Remo Senekowitsch
2024-08-08 11:12:17 +02:00
parent 8df66f7991
commit dc0ffbe16e
4 changed files with 22 additions and 11 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
use ahash::{HashSet, HashSetExt};
use anyhow::{bail, Context, Error, Result};
use std::{
fs::{self, File},
@@ -69,7 +70,7 @@ impl AppState {
return StateFileStatus::NotRead;
}
let mut done_exercises = hashbrown::HashSet::with_capacity(self.exercises.len());
let mut done_exercises = HashSet::with_capacity(self.exercises.len());
for done_exerise_name in lines {
if done_exerise_name.is_empty() {