Skip to content

Make span lifetime bucket bounds static constexpr.#305

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

Make span lifetime bucket bounds static constexpr.#305
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_944164331

Conversation

@copybara-service

Copy link
Copy Markdown

Make span lifetime bucket bounds static constexpr.

The array lifetime_bucket_bounds_ is always initialized with the same values, so it does not need to be initialized per-instance.

We have 64 bytes per size class and 258 size classes, so this is about 16.5 KB per process of overhead.

The array `lifetime_bucket_bounds_` is always initialized with the same values, so it does not need to be initialized per-instance.

We have 64 bytes per size class and 258 size classes, so this is about 16.5 KB per process of overhead.

PiperOrigin-RevId: 944164331
@google-cla

google-cla Bot commented Jul 7, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

0 participants