Skip to content

Commit

Permalink
perf change (cosmos#8796)
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Treglia <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 5, 2021
1 parent 7aa0b4b commit e17953a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/cachekv/memiterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type memIterator struct {
}

func newMemIterator(start, end []byte, items *list.List, ascending bool) *memIterator {
itemsInDomain := make([]*kv.Pair, 0)
itemsInDomain := make([]*kv.Pair, 0, items.Len())

var entered bool

Expand Down

0 comments on commit e17953a

Please sign in to comment.