pydantic / jiter

Fast iterable JSON parser.
https://crates.io/crates/jiter
MIT License
240 stars 17 forks source link

fast path for ASCII python strings #72

Closed samuelcolvin closed 6 months ago

codspeed-hq[bot] commented 6 months ago

CodSpeed Performance Report

Merging #72 will improve performances by 15.15%

Comparing ascii-string-creation (95315f9) with main (cbf2e30)

Summary

⚡ 4 improvements ✅ 52 untouched benchmarks

Benchmarks breakdown

Benchmark main ascii-string-creation Change
python_parse_string_array_not_cached 183.9 µs 164.7 µs +11.67%
python_parse_string_array_unique_not_cached 21.9 ms 19.6 ms +12.05%
python_parse_x100 6.6 µs 5.8 µs +14.12%
python_parse_x100_not_cached 6.4 µs 5.6 µs +15.15%
codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 97.82609% with 1 lines in your changes are missing coverage. Please review. Files Patch % Lines
src/string_decoder.rs 92.30% 1 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

samuelcolvin commented 6 months ago

@davidhewitt I think this is ready to merge.