-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to MergeFrom for weak fields:
- Remove _Internal accessors. They only have one caller and it's better to inline it. - Remove redundant has bit setting. MergeFrom does it globally instead of per field. - Reuse existing arena object. Avoids redundant calls to `GetArena()`. - Use rhs object instead of weak instance for calling `New()`. - Change repeated fields to use the generic MergeFrom instead of Arena::CopyConstruct. PiperOrigin-RevId: 586680126
- Loading branch information
1 parent
07194fc
commit bb8958d
Showing
4 changed files
with
13 additions
and
69 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
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