Skip to content

Inline TimeSeriesTracker fast path and eliminate FunctionRef overhead. - #823

Closed
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_981457142
Closed

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_981457142

Conversation

@copybara-service

Copy link
Copy Markdown

Inline TimeSeriesTracker fast path and eliminate FunctionRef overhead.

SubreleaseStatsTracker::Report, TimeSeriesTracker::Report, SubreleaseStatsEntry::Report, TimeSeriesTracker::IterBackwards, and TimeSeriesTracker::UpdateClock suffer from out-of-line epoch checks, indirect FunctionRef calls per slot, and floating-point duration division. Outlining cold AdvanceClock, templating Iter/IterBackwards, using integer IDivDuration, and predicting empty() false in SubreleaseStatsEntry::Report eliminate indirect branches and call overhead on the hot path.

SubreleaseStatsTracker::Report, TimeSeriesTracker::Report, SubreleaseStatsEntry::Report, TimeSeriesTracker::IterBackwards, and TimeSeriesTracker::UpdateClock suffer from out-of-line epoch checks, indirect FunctionRef calls per slot, and floating-point duration division. Outlining cold AdvanceClock, templating Iter/IterBackwards, using integer IDivDuration, and predicting empty() false in SubreleaseStatsEntry::Report eliminate indirect branches and call overhead on the hot path.
PiperOrigin-RevId: 981457142
@copybara-service copybara-service Bot closed this Sep 17, 2026
@copybara-service
copybara-service Bot deleted the test_981457142 branch September 17, 2026 15:06
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.

1 participant