Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not cmp presorted meta DB values in SearchV2 #3153

Open
cthulhu-rider opened this issue Feb 18, 2025 · 0 comments
Open

Do not cmp presorted meta DB values in SearchV2 #3153

cthulhu-rider opened this issue Feb 18, 2025 · 0 comments
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

Comments

@cthulhu-rider
Copy link
Contributor

cthulhu-rider commented Feb 18, 2025

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> and PREFIX int filters collected from two key spaces
  • ??? (revise all cases accurately)

cmp'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

@cthulhu-rider cthulhu-rider added enhancement Improving existing functionality neofs-storage Storage node application issues labels Feb 18, 2025
@roman-khimov roman-khimov added performance More of something per second U4 Nothing urgent S4 Routine I4 No visible changes labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants