Skip to content

Strength-reduce per-span division in CentralFreeList::DeallocateSpans. - #725

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

Strength-reduce per-span division in CentralFreeList::DeallocateSpans.#725
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_980025504

Conversation

@copybara-service

Copy link
Copy Markdown

Strength-reduce per-span division in CentralFreeList::DeallocateSpans.

Precompute ms_per_cycle = 1000/frequency once outside the lifetime-histogram
loop and multiply per span, instead of dividing by frequency each iteration.
The legacy TCMALLOC_INTERNAL_LEGACY_LOCKING path is unchanged.

Precompute ms_per_cycle = 1000/frequency once outside the lifetime-histogram
loop and multiply per span, instead of dividing by frequency each iteration.
The legacy TCMALLOC_INTERNAL_LEGACY_LOCKING path is unchanged.

PiperOrigin-RevId: 980025504
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