Skip to content

Commit

Permalink
Update to latest version of pebble (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero authored Feb 29, 2024
1 parent 05ca1ee commit 5624a28
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 210 deletions.
3 changes: 1 addition & 2 deletions bench/store_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func newPebbleSubject(b *testing.B) func() (indexer.Interface, error) {
pebbleOpts := &pb2.Options{
BytesPerSync: 10 << 20, // 10 MiB
WALBytesPerSync: 10 << 20, // 10 MiB
MaxConcurrentCompactions: 10,
MaxConcurrentCompactions: func() int { return 10 },
MemTableSize: 64 << 20, // 64 MiB
MemTableStopWritesThreshold: 4,
LBaseMaxBytes: 64 << 20, // 64 MiB
Expand All @@ -95,7 +95,6 @@ func newPebbleSubject(b *testing.B) func() (indexer.Interface, error) {
}

pebbleOpts.Experimental.ReadCompactionRate = 10 << 20 // 20 MiB
pebbleOpts.Experimental.MinDeletionRate = 128 << 20 // 128 MiB

const numLevels = 7
pebbleOpts.Levels = make([]pb2.LevelOptions, numLevels)
Expand Down
23 changes: 15 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
// Note, cockroachdb/pebble has no tagged release. Instead, it uses branches.
// The version below is from: https://github.com/cockroachdb/pebble/tree/crl-release-22.1
// To update to latest, run: go get github.com/cockroachdb/[email protected]
github.com/cockroachdb/pebble v0.0.0-20220726144858-a78491c0086f
github.com/cockroachdb/pebble v0.0.0-20240229012220-7531ef4d20c9
github.com/gammazero/radixtree v0.3.1
github.com/ipfs/go-cid v0.4.1
github.com/ipfs/go-log/v2 v2.5.1
Expand All @@ -21,18 +21,19 @@ require (

require (
github.com/DataDog/zstd v1.4.5 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cockroachdb/errors v1.8.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect
github.com/cockroachdb/redact v1.0.8 // indirect
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect
github.com/cockroachdb/errors v1.11.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/getsentry/sentry-go v0.18.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/snappy v0.0.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/klauspost/compress v1.17.6 // indirect
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
github.com/kr/pretty v0.2.1 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
Expand All @@ -43,11 +44,17 @@ require (
github.com/multiformats/go-multibase v0.2.0 // indirect
github.com/multiformats/go-multicodec v0.9.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.6.0 // indirect
github.com/prometheus/common v0.47.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/exp v0.0.0-20240213143201-ec583247a57a // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
)
Loading

0 comments on commit 5624a28

Please sign in to comment.