9e5f4b9a99
This commit removes the uint64Slice type and performs sorting during filter construction and ZipMatchAny using sort.Slice. The benchmarks indicated that this speeds up BuildGCSFilter and ZipMatchAny by 10-12%, likely to the overhead of needing to resolve the sort.Interface methods. The benchmarks indicate that this improvement is not present for the smallest query size in our benchmarks, i.e. 100 elements, but the reduction is only about 3%. This would indicate the at these small values, the use of reflection is actually slightly slower than interface method resolution in total. |
||
---|---|---|
.. | ||
builder | ||
doc.go | ||
gcs.go | ||
gcs_test.go | ||
gcsbench_test.go | ||
README.md |
gcs
[] (https://travis-ci.org/btcsuite/btcutil) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [] (http://godoc.org/github.com/btcsuite/btcutil/gcs)
Package gcs provides an API for building and using a Golomb-coded set filter similar to that described here.
A comprehensive suite of tests is provided to ensure proper functionality.
Installation and Updating
$ go get -u github.com/btcsuite/btcutil/gcs
License
Package gcs is licensed under the copyfree ISC License.