Optimize TDP table generation:
- Only call GetUtf8CheckMode once per field. - Avoid vector reallocations in GenerateFieldNames by sizing it correctly from the start and using pointers to write to it instead of push_back. - Stop making a temporary array of names. We cache GetUtf8CheckMode so testing for it again is cheaper. PiperOrigin-RevId: 624986618
P
Protobuf Team Bot committed
27d4fbbee9dcee1a4c9dacfc9d5ee6ca9c229173
Parent: cfba3a6
Committed by Copybara-Service <copybara-worker@google.com>
on 4/15/2024, 4:36:57 PM