Skip to content

Conversation

@mediocregopher
Copy link
Collaborator

This PR introduces a ReusableCursor type which automatically returns a cursor to a Cell on Drop. By holding a Cell for each table type we are able to reuse cursors in the state providers.

I wanted to make this even more generic and automatic, so that we automatically reuse dropped cursors on every Tx, but doing so is a bigger lift. This should at least get us something useful.

Closes #20492

@mediocregopher mediocregopher self-assigned this Dec 19, 2025
@mediocregopher mediocregopher added C-perf A change motivated by improving speed, memory usage or disk footprint A-db Related to the database labels Dec 19, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Dec 19, 2025
@github-actions github-actions bot added the C-enhancement New feature or request label Dec 19, 2025
@mediocregopher mediocregopher marked this pull request as ready for review December 21, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-db Related to the database C-enhancement New feature or request C-perf A change motivated by improving speed, memory usage or disk footprint

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants