Do not cmp presorted meta DB values in SearchV2 #3153
Labels
enhancement
Improving existing functionality
I4
No visible changes
neofs-storage
Storage node application issues
performance
More of something per second
S4
Routine
U4
Nothing urgent
Is your feature request related to a problem? Please describe.
iterator can collect values either pre-sorted or not. Currently, iterator always checks candidate against optional cursor and the accumulated ones. This should be done only for:
!= <any>
andPREFIX int
filters collected from two key spacescmp'ing for ordered iterator adds CPU overhead, thereby slowing down execution. Although, given the limits, these are not high expenses, they should still be avoided
Describe the solution you'd like
precalc flag whether iterator goes over presorted values, and make cmp only otherwise
Additional context
The text was updated successfully, but these errors were encountered: