fastsimdjson 2.1: drop-in Python json replacement runs 3.5–4.3x faster, even in browsers
lemire · x · 2026-12-05
- fastsimdjson 2.1 is a drop-in replacement for Python's json module built on simdjson 5.4: identical output character-for-character, 3.5–4.3x faster, zero dependencies
- New since 2.0: runs in the browser via Pyodide/WebAssembly wheels
- fields= uses simdjson's On-Demand parser to read only needed fields; lazy parse builds only values you access
- Typed parsing (loads(data, type=T)) builds dataclasses/TypedDicts 1.6–2.1x faster than msgspec, 3.9–5.2x faster than pydantic
- Direct JSON↔MessagePack conversion (4x orjson+ormsgpack); NDJSON→Arrow at 28.6 GB/s on 32 cores without pyarrow
- Multi-threaded NDJSON streaming up to 21 GB/s on 64-core free-threaded Python
- Ships PEP 561 stubs; wheels for Linux/macOS/Windows/Pyodide, Python 3.10–3.15 including free-threaded
More from coding & agent
- Atlassian ships AI interaction design guidelines for human-agent teams — davidhoang · 2026-12-05
- After a $500K failure, 4 hours of explaining to an AI agent finished the project — AccBalanced · 2026-12-05
- Muse Voice Agent Calls Insurance Company, Navigates Phone Tree and Hold Time — nikhilaravi · 2026-12-05
- Sentry CEO: "agents do it, but less efficiently than a person" is a common unspoken sentiment — zeeg · 2026-12-05
- Zed founder: ship slower and stop wasting compute on code you don't need — zeeg · 2026-12-05
- Managing a global preferences repo that every CLAUDE.md routes to — Momorotto · 2026-12-05