Alexey Ivanov
Alexey Ivanov
Currently [appveyor tests](https://ci.appveyor.com/project/manishrjain/badger/builds/42502297) are failing in multiple places on Windows. --- This change is [](https://reviewable.io/reviews/dgraph-io/badger/1775)
This fixes processing of files where viewbox has leading/trailing whitespace.
This CR adds functional Options pattern to the Chunker's `New` and `Reset` functions[1]. This allows adding new functionality to the `Chunker` w/o cardinality explosion of the `NewWith*` and `ResetWith*` functions....
I've tried to use restic's chunker instead of a [FastCDC](https://www.usenix.org/system/files/conference/atc16/atc16-paper-xia.pdf) and noticed that compression ratios dropped substantially. Looking deeper into the issue I've found that most of the chunks produced...
This will be used a lot in loader unit testing. PS. If anyone has ideas about how to do 3rd party mocking without a "proxy" interface -- this would be...
This is a backport of #2985 to the v0.27.
* https://github.com/libp2p/go-libp2p-swarm is deprecated. * https://github.com/libp2p/go-libp2p-discovery is deprecated. * https://github.com/libp2p/go-tcp-transport is deprecated. * `blockstore.ErrNotFound` is no longer exported exported and replaced with `ipld.IsNotFound(err)`. * `go vet` [now complains about wrong...
`gcemd.Client` caches some (immutable) results (e.g. ProjectID and InstanceID) in global variables, so it is impossible to run multiple tests against it. Tested w/: ``` $ go test -race -count...
In this PR: * Switch to faster hash ``` name time/op Murmur/1-8 2.68ns ± 1% Murmur/4-8 3.45ns ± 1% Murmur/8-8 4.70ns ± 0% Murmur/16-8 6.19ns ± 0% Murmur/32-8 10.6ns ±...