Skip to content

Commit ea185e4

Browse files
committed
feat: using orjson replace ujson
1 parent 3587895 commit ea185e4

File tree

11 files changed

+9349
-13
lines changed

11 files changed

+9349
-13
lines changed

CHANGES/10795.feature.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Added :py:mod:`orjson` support as the default JSON encoder for :py:class:`~aiohttp.ClientSession` and :py:class:`~aiohttp.JsonPayload`.
2+
When :py:mod:`orjson` is available, it is automatically used instead of the standard library :py:mod:`json` module, providing significantly improved performance for JSON serialization.
3+
:py:mod:`orjson` is included in the ``speedups`` optional dependency group and can be installed with ``pip install aiohttp[speedups]``.
4+
The implementation gracefully falls back to :py:mod:`json` when :py:mod:`orjson` is not installed, ensuring backward compatibility.
5+
Custom JSON encoders can still be provided as before to override the default behavior.
6+
-- by :user:`fatelei`.

0 commit comments

Comments
 (0)