Skip to content

4.0.0

Latest

Choose a tag to compare

@jbird-release jbird-release released this 04 Dec 16:09

⚠️ Important: This release contains breaking changes.

Overview

JBird 4.0 focuses on numeric correctness and a pure Swift core. Numbers now keep the exact decimal value they were written with, however long it is, so large integers, long fractions and extreme exponents round-trip digit for digit. It adds support for Int128 and UInt128 on supported platforms, and conversions that used to crash on out-of-range values now throw. The parsing engine has been completely rewritten in Swift, and the library no longer contains any C code. Compared to the previous version, JBird 4.0 parses typical JSON about 20 to 25 percent faster while allocating about half as much memory. The gains on real-world payloads can be even larger. The twitter benchmark is up to 32 percent faster with a third of the memory allocated, and number-heavy documents are up to 35 percent faster. Peak memory usage is up to 27 percent lower on large documents and unchanged elsewhere. Full comparisons are in the Benchmarks directory.

What's Changed

Full Changelog: 3.1.1...4.0.0