Skip to content

Commit 1b6cf36

Browse files
committed
matchfinder: remove MultiHash
It was an interesting experiment, but it didn't do any better than M4.
1 parent 265f3af commit 1b6cf36

File tree

2 files changed

+0
-270
lines changed

2 files changed

+0
-270
lines changed

brotli_test.go

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -693,27 +693,3 @@ func BenchmarkEncodeM4Chain64(b *testing.B) {
693693
func BenchmarkEncodeM4Chain128(b *testing.B) {
694694
benchmark(b, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.M4{MaxDistance: 1 << 20, ChainLength: 128, HashLen: 5, DistanceBitCost: 57}, 1<<16)
695695
}
696-
697-
func TestEncodeMultiHash6(t *testing.T) {
698-
test(t, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 18, DistanceBitCost: 57, HashLengths: []int{6}}, 1<<16)
699-
}
700-
701-
func TestEncodeMultiHash6_8(t *testing.T) {
702-
test(t, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 18, DistanceBitCost: 57, HashLengths: []int{6, 8}}, 1<<16)
703-
}
704-
705-
func BenchmarkEncodeMultiHash6(b *testing.B) {
706-
benchmark(b, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 20, DistanceBitCost: 57, HashLengths: []int{6}}, 1<<16)
707-
}
708-
709-
func BenchmarkEncodeMultiHash5_8(b *testing.B) {
710-
benchmark(b, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 20, DistanceBitCost: 57, HashLengths: []int{5, 8}}, 1<<16)
711-
}
712-
713-
func BenchmarkEncodeMultiHash5_7_9(b *testing.B) {
714-
benchmark(b, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 20, DistanceBitCost: 57, HashLengths: []int{5, 7, 9}}, 1<<16)
715-
}
716-
717-
func BenchmarkEncodeMultiHash5_6_7_9(b *testing.B) {
718-
benchmark(b, "testdata/Isaac.Newton-Opticks.txt", &matchfinder.MultiHash{MaxDistance: 1 << 20, DistanceBitCost: 57, HashLengths: []int{5, 6, 7, 9}}, 1<<16)
719-
}

matchfinder/multihash.go

Lines changed: 0 additions & 246 deletions
This file was deleted.

0 commit comments

Comments
 (0)