-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decoder: optimize decoding of optional and variant for scalar types
Currently, we always emplace an optional or variant in order to pass the value they contain forward, as a reference. This is required for complex nested types. However, if we are dealing with a scalar type, we can read its value into the optional or variant in-place. Closes #84
- Loading branch information
1 parent
bf27f48
commit 7ea354d
Showing
2 changed files
with
31 additions
and
5 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