Skip to content

Commit 3d2a94b

Browse files
committed
Switch to ahash
1 parent a717af8 commit 3d2a94b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ pub fn store(args: TokenStream, item: TokenStream) -> TokenStream {
351351
if rows.is_empty() {
352352
return Ok(());
353353
}
354-
let mut grouped_rows: std::collections::HashMap<_, Vec<#name>> = std::collections::HashMap::new();
354+
let mut grouped_rows: ahash::AHashMap<_, Vec<#name>> = ahash::AHashMap::new();
355355
for row in rows {
356356
grouped_rows.entry((#store_group grouping(&row))).or_default().push(row);
357357
}

tests/expand/boolean.expanded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl CompressedQueryStats {
150150
if rows.is_empty() {
151151
return Ok(());
152152
}
153-
let mut grouped_rows: std::collections::HashMap<_, Vec<QueryStat>> = std::collections::HashMap::new();
153+
let mut grouped_rows: ahash::AHashMap<_, Vec<QueryStat>> = ahash::AHashMap::new();
154154
for row in rows {
155155
grouped_rows.entry((row.database_id, grouping(&row))).or_default().push(row);
156156
}

tests/expand/float_round.expanded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl CompressedQueryStats {
154154
if rows.is_empty() {
155155
return Ok(());
156156
}
157-
let mut grouped_rows: std::collections::HashMap<_, Vec<QueryStat>> = std::collections::HashMap::new();
157+
let mut grouped_rows: ahash::AHashMap<_, Vec<QueryStat>> = ahash::AHashMap::new();
158158
for row in rows {
159159
grouped_rows.entry((row.database_id, grouping(&row))).or_default().push(row);
160160
}

tests/expand/no_group_by.expanded.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl CompressedQueryStats {
9090
if rows.is_empty() {
9191
return Ok(());
9292
}
93-
let mut grouped_rows: std::collections::HashMap<_, Vec<QueryStat>> = std::collections::HashMap::new();
93+
let mut grouped_rows: ahash::AHashMap<_, Vec<QueryStat>> = ahash::AHashMap::new();
9494
for row in rows {
9595
grouped_rows.entry(()).or_default().push(row);
9696
}
@@ -150,7 +150,7 @@ impl CompressedQueryStats {
150150
if rows.is_empty() {
151151
return Ok(());
152152
}
153-
let mut grouped_rows: std::collections::HashMap<_, Vec<QueryStat>> = std::collections::HashMap::new();
153+
let mut grouped_rows: ahash::AHashMap<_, Vec<QueryStat>> = ahash::AHashMap::new();
154154
for row in rows {
155155
grouped_rows.entry((grouping(&row))).or_default().push(row);
156156
}

tests/expand/query_stats.expanded.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ impl CompressedQueryStats {
352352
if rows.is_empty() {
353353
return Ok(());
354354
}
355-
let mut grouped_rows: std::collections::HashMap<_, Vec<QueryStat>> = std::collections::HashMap::new();
355+
let mut grouped_rows: ahash::AHashMap<_, Vec<QueryStat>> = ahash::AHashMap::new();
356356
for row in rows {
357357
grouped_rows.entry((row.database_id, grouping(&row))).or_default().push(row);
358358
}

0 commit comments

Comments
 (0)