<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ujson on α-Lyrae</title><link>https://chr.fan/tags/ujson/</link><description>Recent content in Ujson on α-Lyrae</description><generator>Hugo</generator><language>zh</language><copyright>© Antares0982</copyright><lastBuildDate>Sun, 15 Mar 2026 02:02:04 +0800</lastBuildDate><atom:link href="https://chr.fan/tags/ujson/index.xml" rel="self" type="application/rss+xml"/><item><title>警惕第三方Python JSON库的性能陷阱</title><link>https://chr.fan/python-json/</link><pubDate>Sun, 28 Dec 2025 02:34:17 +0800</pubDate><guid>https://chr.fan/python-json/</guid><description>&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;自称其是世界上性能最高的Python JSON库，根据其README中的说法，其dumps速度能达到标准库json的10倍，loads是json的2倍。&lt;/p&gt;&#10;&lt;p&gt;我们来生成一个非常简单的纯中文测试用例，来看看orjson（v3.11.3）的实际性能和内存占用的表现如何。先看看&lt;code&gt;dumps&lt;/code&gt;：&lt;/p&gt;</description></item></channel></rss>