Rewrite needle_map.CompactMap() for more efficient memory usage (#6813)

This commit is contained in:
Lisandro Pin
2025-05-23 16:05:08 +02:00
committed by GitHub
parent f1181f1121
commit 2e1506c31e
2 changed files with 85 additions and 90 deletions

View File

@@ -150,7 +150,7 @@ func TestOverflow(t *testing.T) {
t.Fatalf("expecting 5 entries now: %+v", cs.overflow)
}
_, x, _ := cs.findOverflowEntry(5)
x, _ := cs.findOverflowEntry(5)
if x.Key != 5 {
t.Fatalf("expecting entry 5 now: %+v", x)
}