Skip to content

Commit

Permalink
Add index benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
serathius committed Jun 16, 2024
1 parent 15f9a59 commit 4a3e2bd
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 26 deletions.
3 changes: 1 addition & 2 deletions server/storage/mvcc/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type index interface {
Tombstone(key []byte, rev Revision) error
Compact(rev int64) map[Revision]struct{}
Keep(rev int64) map[Revision]struct{}
Equal(b index) bool

Insert(ki *keyIndex)
KeyIndex(ki *keyIndex) *keyIndex
Expand All @@ -42,7 +41,7 @@ type treeIndex struct {
lg *zap.Logger
}

func newTreeIndex(lg *zap.Logger) index {
func newTreeIndex(lg *zap.Logger) *treeIndex {
return &treeIndex{
tree: btree.NewG(32, func(aki *keyIndex, bki *keyIndex) bool {
return aki.Less(bki)
Expand Down
Loading

0 comments on commit 4a3e2bd

Please sign in to comment.