Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPermit zero alloc reads #394
Conversation
Codecov Report
@@ Coverage Diff @@
## master #394 +/- ##
==========================================
- Coverage 81.81% 81.37% -0.45%
==========================================
Files 41 41
Lines 5022 5085 +63
==========================================
+ Hits 4109 4138 +29
- Misses 792 819 +27
- Partials 121 128 +7
Continue to review full report at Codecov.
|
|
Please let me know if this is something you're interested in, if so I can improve the coverage. |
It's not currently possible to use jsoniter without having it allocate for each field name. This makes it possible. I found a couple existing functions that can benefit from this change, so it's overall a slight performance improvement.
I added this benchmark to show the difference more clearly:
Often, users will store the field names and need to do this allocation anyway. But not always.