Tag

ujson

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
May 18, 2024 · Fundamentals

Understanding Monkey Patching in Python: Concepts, Example, and Performance Boost

This article explains what monkey patching is in Python, demonstrates how to replace the standard json module with the faster ujson module using a simple runtime patch, and shows performance measurements before and after the patch to illustrate the speed improvement.

decoratormonkey-patchingperformance
0 likes · 4 min read
Understanding Monkey Patching in Python: Concepts, Example, and Performance Boost
Python Programming Learning Circle
Python Programming Learning Circle
Aug 9, 2021 · Backend Development

Choosing Faster JSON Libraries in Python: ujson, rapidjson, and orjson Comparison

The article investigates why Python's built‑in json.dumps can be slow on large data structures, compares the performance of ujson, python‑rapidjson, simplejson, and the Rust‑based orjson, provides benchmark code, installation commands, and discusses a bug in ujson's indent handling.

JSONPythonSerialization
0 likes · 6 min read
Choosing Faster JSON Libraries in Python: ujson, rapidjson, and orjson Comparison