Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate parsing, assuming ASCII encoding for JSON string. #3

Open
prataprc opened this issue Dec 24, 2018 · 0 comments
Open

Alternate parsing, assuming ASCII encoding for JSON string. #3

prataprc opened this issue Dec 24, 2018 · 0 comments

Comments

@prataprc
Copy link
Owner

prataprc commented Dec 24, 2018

JSON Strings can be unicode encoded and parsing them can be costly: For example

for r#""汉语 / 漢語; Hàn\b \tyǔ ""#

bench_string:  771 ns/iter (+/- 213)

By not supporting unicode encoded string, we can improve the performance of JSON deserialisation.

Right now parse_string() handles string parsing for JSON. Implement parse_ascii_string() as alternate feature.

@prataprc prataprc added the help wanted Extra attention is needed label Jan 2, 2019
@prataprc prataprc changed the title Alternate string parsing for non-unicode JSON Alternate parsing for non-unicode JSON string. Jan 2, 2019
@prataprc prataprc changed the title Alternate parsing for non-unicode JSON string. Alternate parsing, assuming ASCII encoding for JSON string. Jan 12, 2019
@prataprc prataprc removed help wanted Extra attention is needed labels Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant