I released json2xml 6.2.0 today, along with json2xml-rs 0.3.0. This is not a flashy API release. It is a release about making the common path use less memory. The short version: the Rust serializer’s measured peak RSS delta dropped from 157.70 MiB to 80.26 MiB on a 100,000-record benchmark. That is 77.44 MiB saved, or about 49.1% lower peak serializer memory. For users, the upgrade is simple: pip install --upgrade json2xml pip install --upgrade "json2xml[fast]" The fast extra now requires json2xml-rs>=0.3.0, so users get the memory-saving Rust wheel when they install the accelerated path. Why memory became the next target Earlier this year I added a native Rust extension to json2xml. That work was mostly about speed. The Rust path made normal conversions much faster while keeping the Python API intact. But performance is not only latency. For large JSON payloads, peak memory can be the real limit. A serializer can be fast and still be wasteful if it holds multiple copies of the same…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.