Skip to content

Commit

Permalink
Add a feature to container_internal::Layout that lets you specify som…
Browse files Browse the repository at this point in the history
…e 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
  • Loading branch information
Abseil Team authored and copybara-github committed Mar 18, 2024
1 parent 56d3f22 commit 5839a14
Show file tree
Hide file tree
Showing 3 changed files with 753 additions and 66 deletions.
Loading

0 comments on commit 5839a14

Please sign in to comment.