-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force a upb_MiniTable and its fields to be contiguous in memory.
The default size for an empty arena is 256 bytes; if a minidescriptor is 20 bytes long, the arena will allocate another separate block for the minitable fields, which depending on the allocator could increase TLB pressure. I did try implementing this as a flexible array member on `upb_MiniTable`, but unfortunately that's already used for the fasttable members, and it actually inexplicably showed tiny perf regressions in parsing benchmarks. PiperOrigin-RevId: 720815985
- Loading branch information
1 parent
0644388
commit 57f91eb
Showing
1 changed file
with
30 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters