-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the String doesn't contain any characters to escape then we can just return the String as-is and avoid redundant allocations. This in turn can improve performance of generating JSON a bit, as the JSON generator uses String.escaped for generating string values. Changelog: performance
- Loading branch information
1 parent
6307d38
commit a8dd525
Showing
2 changed files
with
32 additions
and
10 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