diff options
author | Abseil Team <absl-team@google.com> | 2024-03-18 07:11:24 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-18 07:12:47 -0700 |
commit | 5839a14828f31f1c2876003677e0ce8e28544b1f (patch) | |
tree | c0285fce5021925046aea550c72989ada735204f /absl/container/fixed_array_exception_safety_test.cc | |
parent | 56d3f227154af7a646302ae4a0891f14a2d3616b (diff) | |
download | abseil-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/container/fixed_array_exception_safety_test.cc')
0 files changed, 0 insertions, 0 deletions