Skip to content

Commit

Permalink
feat(query): Improve query performance
Browse files Browse the repository at this point in the history
As a follow on to #17596, performance of all merge operations can
be improved by removing allocations when comparing tags.

`benchstat` results:

```
name                    old time/op    new time/op    delta
SortedMergeIterator-16    32.4ms ± 2%     5.2ms ± 3%  -83.81%  (p=0.000 n=10+10)

name                    old alloc/op   new alloc/op   delta
SortedMergeIterator-16    36.5MB ± 0%     5.8MB ± 0%  -84.20%  (p=0.000 n=10+9)

name                    old allocs/op  new allocs/op  delta
SortedMergeIterator-16      420k ± 0%       60k ± 0%  -85.71%  (p=0.000 n=9+10)
```
  • Loading branch information
stuartcarnie committed Apr 22, 2020
1 parent 96bbe2e commit 2b34eea
Show file tree
Hide file tree
Showing 5 changed files with 514 additions and 97 deletions.
Loading

0 comments on commit 2b34eea

Please sign in to comment.