diff options
author | Evan Brown <ezb@google.com> | 2024-03-06 10:00:52 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-06 10:01:43 -0800 |
commit | 1449c9a106b090f61441ba245c781d7d2f89000c (patch) | |
tree | 94d6ec1a8980dfa6605f9b0e50e549e3e5761f0b /absl/synchronization/internal/per_thread_sem_test.cc | |
parent | 6bf3c73fdfeb62733d2a0f81b9846ff77f3a3b9f (diff) | |
download | abseil-1449c9a106b090f61441ba245c781d7d2f89000c.tar.gz abseil-1449c9a106b090f61441ba245c781d7d2f89000c.tar.bz2 abseil-1449c9a106b090f61441ba245c781d7d2f89000c.zip |
Implement small object optimization in swisstable - disabled for now.
Details:
- We use the space for control/slots pointers as the inline buffer.
- We use a max inline capacity of 1 to make the implementation much simpler and to avoid having to randomize the iteration order for inline tables.
- For iteration of inline tables, we introduce the kSooControl buffer which just has 1 full control byte followed by 1 sentinel control byte so that incrementing yields an end() iterator. We don't access kSooControl during lookups - only iteration.
PiperOrigin-RevId: 613253492
Change-Id: Id98ff11842f8bef27ac7ed88138dc03b46ce4fa6
Diffstat (limited to 'absl/synchronization/internal/per_thread_sem_test.cc')
0 files changed, 0 insertions, 0 deletions