-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove jsontext.WithEscapeFunc (#313)
WARNING: This commit includes breaking changes. This option original existed as a way for users to implement EscapeForHTML and EscapeForJS on their own. Since we added first-class support for those two escaping, drop the general purpose escape logic. It carries a unjustified amount of complexity. Generally speaking, users can trivially do this escaping themselves for any character that is not ASCII. Performance: name old time/op new time/op delta Testdata/CanadaGeometry/Marshal/Concrete 1.39ms ± 2% 1.39ms ± 2% ~ (p=0.745 n=55+49) Testdata/CitmCatalog/Marshal/Concrete 1.41ms ± 2% 1.42ms ± 2% +0.95% (p=0.000 n=57+59) Testdata/GolangSource/Marshal/Concrete 5.27ms ± 2% 5.16ms ± 1% -2.18% (p=0.000 n=58+56) Testdata/StringEscaped/Marshal/Concrete 26.9µs ± 2% 25.7µs ± 2% -4.60% (p=0.000 n=60+56) Testdata/StringUnicode/Marshal/Concrete 27.0µs ± 2% 25.6µs ± 2% -5.01% (p=0.000 n=56+60) Testdata/SyntheaFhir/Marshal/Concrete 8.35ms ± 2% 8.08ms ± 2% -3.25% (p=0.000 n=60+50) Testdata/TwitterStatus/Marshal/Concrete 925µs ± 2% 916µs ± 2% -1.00% (p=0.000 n=58+40)
- Loading branch information
Showing
19 changed files
with
177 additions
and
445 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
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
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
Oops, something went wrong.