-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes `Reader::read_prefixed` from a provided method to one which must be impl'd by all of the `Reader` types, of which there are currently three: - `&[u8]` - `Base64Reader` - `PemReader` This should reduce monomorphization bloat from `NestedReader` which encapsulates other reader types, including other `NestedReader`s, depending on the level of nesting, which is generally low, but good to eliminate entirely. This does lead to a small amount of duplication between `Base64Reader` and `PemReader` which was previously encapsulated in `NestedReader`. It can possibly be eliminated in followup work.
- Loading branch information
Showing
4 changed files
with
116 additions
and
49 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