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

Speed up state_view::Iter by special casing committed-with-no-deletes #2003

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Nov 20, 2024

Description of Changes

Based on flamegraphs of iter, this speeds it up by avoiding checking the delete tables for every committed row if there isn't a delete table. Meanwhile, here, we also only fetch the delete table once instead of for every committed row.

Fixes #2012.

API and ABI breaking changes

None

Expected complexity level and risk

1, localized and already well tested change.

@Centril Centril marked this pull request as draft November 20, 2024 20:19
@Centril Centril changed the title hack togeter state_view::Iter that does less work potentially Speed up state_view::Iter by special casing committed-with-no-deletes Nov 27, 2024
@Centril Centril force-pushed the centril/potentially-better-scan-stage-iter branch from b008b75 to e1dfd1c Compare November 27, 2024 20:45
@Centril Centril marked this pull request as ready for review November 27, 2024 20:46
@Centril Centril force-pushed the centril/potentially-better-scan-stage-iter branch from e1dfd1c to 145c23f Compare November 28, 2024 15:00
@Centril Centril enabled auto-merge November 28, 2024 15:00
@Centril Centril force-pushed the centril/potentially-better-scan-stage-iter branch from 145c23f to 9217302 Compare November 28, 2024 15:34
@Centril Centril added this pull request to the merge queue Nov 28, 2024
Merged via the queue into master with commit 1992b8e Nov 28, 2024
8 checks passed
@Centril Centril deleted the centril/potentially-better-scan-stage-iter branch November 28, 2024 16:09
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.

perf: Speed up .iter() by doing less work in state_view::Iter
2 participants