-
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.
Change
FieldDescriptor::type()
to not have the call_once behavior.
This behavior is for lazily build descriptors, and those are for generated code which always have this field set. The `type()` function is called extensively in reflection based code and removing the call_once has significant performance impact. PiperOrigin-RevId: 625328922
- Loading branch information
1 parent
55696ad
commit 4a7b51b
Showing
3 changed files
with
182 additions
and
117 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
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
Oops, something went wrong.