lbcutil/gcs
Conner Fromknecht 9e5f4b9a99 gcs/gcs: use sort.Slice instead of sort.Sort, remove uint64Slice
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.
2019-04-25 16:57:16 -07:00
..
builder gcs/builder: Omit all OP_RETURN scripts from basic filter. 2019-02-06 16:39:14 -08:00
doc.go gcs: fix slight typo in docs, 2^-n not 2^-1 2018-05-15 19:14:18 -07:00
gcs.go gcs/gcs: use sort.Slice instead of sort.Sort, remove uint64Slice 2019-04-25 16:57:16 -07:00
gcs_test.go gcs/gcs_test: match zero element 2019-04-25 16:42:51 -07:00
gcsbench_test.go gcs/gcsbench_test: adds Zip/HashMatchAny comparsions 2019-01-11 20:11:46 -08:00
README.md README.md fixes 2018-05-15 19:14:18 -07:00

gcs

[Build Status] (https://travis-ci.org/btcsuite/btcutil) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [GoDoc] (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.