Skip to content

optimize view_for_update to do nothing when there are no views#4134

Merged
Centril merged 1 commit intomasterfrom
centril/skip-view_for_update
Jan 27, 2026
Merged

optimize view_for_update to do nothing when there are no views#4134
Centril merged 1 commit intomasterfrom
centril/skip-view_for_update

Conversation

@Centril
Copy link
Contributor

@Centril Centril commented Jan 27, 2026

Description of Changes

Skip more work in MutTxId::view_for_update when there are no views.
This is a gain of a few kTPS and results in view_for_update disappearing from flamegraphs.

API and ABI breaking changes

None

Expected complexity level and risk

1

Testing

Covered by existing tests.

@Centril Centril enabled auto-merge January 27, 2026 11:15
@Centril Centril added this pull request to the merge queue Jan 27, 2026
Merged via the queue into master with commit cf33ad9 Jan 27, 2026
29 checks passed
@Centril Centril deleted the centril/skip-view_for_update branch January 27, 2026 12:56
Centril added a commit that referenced this pull request Jan 27, 2026
# Description of Changes

Skip more work in `MutTxId::view_for_update` when there are no views.
This is a gain of a few kTPS and results in `view_for_update`
disappearing from flamegraphs.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

Covered by existing tests.
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.

2 participants