aboutsummaryrefslogtreecommitdiff
path: root/absl/base/internal/inline_variable_testing.h
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2024-03-18 07:11:24 -0700
committerCopybara-Service <copybara-worker@google.com>2024-03-18 07:12:47 -0700
commit5839a14828f31f1c2876003677e0ce8e28544b1f (patch)
treec0285fce5021925046aea550c72989ada735204f /absl/base/internal/inline_variable_testing.h
parent56d3f227154af7a646302ae4a0891f14a2d3616b (diff)
downloadabseil-5839a14828f31f1c2876003677e0ce8e28544b1f.tar.gz
abseil-5839a14828f31f1c2876003677e0ce8e28544b1f.tar.bz2
abseil-5839a14828f31f1c2876003677e0ce8e28544b1f.zip
Add a feature to container_internal::Layout that lets you specify some array sizes at compile-time as template parameters. This can make offset and size calculations faster.
In particular, it seems to always improve the performance of AllocSize(), and it sometimes improves the performance of other functions, e.g. when the Layout object outlives the function that created it. PiperOrigin-RevId: 616817169 Change-Id: Id1d318d7d2af68783f9f59090d89c642be6ae558
Diffstat (limited to 'absl/base/internal/inline_variable_testing.h')
0 files changed, 0 insertions, 0 deletions