Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use from_utf8_unchecked in the fmt::Display implementation of Value
`WriterFormatter` has been moved into it's own little module to enforce using it's `new` method to convey the unsafe requirements. the safety requirements that the serializer only emits valid utf8 is already assumed by the existing `to_string` methods. this speeds up formatting large `Value`s by about 33% in my testing
- Loading branch information
1 parent
7ff8ec6
commit e0747b9
Showing
1 changed file
with
34 additions
and
16 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