-
Notifications
You must be signed in to change notification settings - Fork 11
Switch to orjson
as faster JSON implementation
#772
Conversation
In Sentry we switched some of the JSON implementations to
I don’t expect to see any problems related to that, as I doubt we are serializing any |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #772 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36613 36602 -11
==========================================
- Hits 35895 35883 -12
- Misses 718 719 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #772 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36613 36602 -11
==========================================
- Hits 35895 35883 -12
- Misses 718 719 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #772 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36613 36602 -11
==========================================
- Hits 35895 35883 -12
- Misses 718 719 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #772 +/- ##
==========================================
- Coverage 98.03% 98.03% -0.01%
==========================================
Files 442 442
Lines 36613 36602 -11
==========================================
- Hits 35895 35883 -12
- Misses 718 719 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e8dd062
to
a247063
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
`orjson` is supposed to be a faster JSON parser/serializer, with benchmark claiming its ~3x faster at parsing, and up to ~10x faster serializing. Here I mostly changed the `loads` codepaths, and most of the `dumps` ones that do not define a custom serializer implementation.
a247063
to
42ea1b5
Compare
This is the same as codecov/worker#772, and for the same reasons: `orjson` is advertised as being 3x faster for deserialization, and up to 10x faster for serialization.
This is the same as codecov/worker#772, and for the same reasons: `orjson` is advertised as being 3x faster for deserialization, and up to 10x faster for serialization.
This is the same as codecov/worker#772, and for the same reasons: `orjson` is advertised as being 3x faster for deserialization, and up to 10x faster for serialization.
This is the same as codecov/worker#772, and for the same reasons: `orjson` is advertised as being 3x faster for deserialization, and up to 10x faster for serialization.
orjson
is supposed to be a faster JSON parser/serializer, with benchmark claiming its ~3x faster at parsing, and up to ~10x faster serializing. (See https://github.com/ijl/orjson?tab=readme-ov-file#performance)Here I mostly changed the
loads
codepaths, and most of thedumps
ones that do not define a custom serializer implementation.