<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JSON on α-Lyrae</title><link>https://chr.fan/en/tags/json/</link><description>Recent content in JSON on α-Lyrae</description><generator>Hugo</generator><language>en</language><copyright>© Antares0982</copyright><lastBuildDate>Sat, 14 Mar 2026 18:07:20 +0000</lastBuildDate><atom:link href="https://chr.fan/en/tags/json/index.xml" rel="self" type="application/rss+xml"/><item><title>Beware of Performance Pitfalls in Third-Party Python JSON Libraries</title><link>https://chr.fan/en/python-json/</link><pubDate>Wed, 07 Jan 2026 17:26:36 +0000</pubDate><guid>https://chr.fan/en/python-json/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This article is a GPT-5 translation and may contain errors. If anything is unclear, please refer to the original &lt;a href="https://chr.fan/python-json/"&gt;Chinese version&lt;/a&gt;.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/ijl/orjson/blob/3.11.3/README.md#:~:text=It%20benchmarks%20as%20the%20fastest"&gt;orjson&lt;/a&gt; claims to be the fastest Python JSON library in the world. According to its README, its &lt;code&gt;dumps&lt;/code&gt; can be up to 10x faster than the standard library &lt;code&gt;json&lt;/code&gt;, and &lt;code&gt;loads&lt;/code&gt; about 2x faster.&lt;/p&gt;&#10;&lt;p&gt;However let&amp;rsquo;s build a very simple, Chinese character only test case to reveal how orjson (v3.11.3) actually behaves in terms of performance and memory usage. Firstly for &lt;code&gt;dumps&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>