Skip to content

Conversation

@matheus23
Copy link
Contributor

This seems to improve performance by ~8-10% in local benchmarks for me.

This seems to improve performance by ~8-10% in local benchmarks for us.
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and simple, and seems plausible?

@matheus23
Copy link
Contributor Author

I would hold off on merging this too eagerly. For me this improves some benchmarks by quite a bit, but others also regress.

Mostly this tells me that overall CPU use seems to depend on the range set performance characteristics.

@Ralith
Copy link
Collaborator

Ralith commented Nov 14, 2025

Another concern that bears some thought is the hazard of a CPU DoS attack. A peer can exert substantial control over the number of ranges in these fields, and the B tree structure is less sensitive to total size, though how much this matters depends on the exact accesses we're performing.

@Ralith
Copy link
Collaborator

Ralith commented Nov 14, 2025

#2422 will also improve some B-tree operations, which might tilt the balance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants