-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop fully inlining of packed field encoders. (#101)
We want to inline the field number because it is often a constant. But by forcing the entire fold to be INLINE, not just the field number, we force an impossible choice on proto3-suite: inline nothing or everything. Therefore we leave the actual folds merely INLINABLE. (If that is insufficient control then we may have to expose a more complex API.) Also give the compiler more discretion about whether to inline varints.
- Loading branch information
Showing
2 changed files
with
40 additions
and
28 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