Repository navigation
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
- Remove JBirdParser, rewrite parser in Swift by @vsanthanam in #499
- Rewrite document writing APIs to be synchronous by @vsanthanam in #501
- Deprecate asynchronous serialize/deserialize APIs by @vsanthanam in #502
- Add package trait descriptions by @vsanthanam in #503
- Fix default input size limit trap on 32-bit targets by @vsanthanam in #504
- Omit Xcode Privacy Manifest on non-Apple platforms by @vsanthanam in #505
- Fix Number equality trap for out-of-range doubles by @vsanthanam in #507
- Add IkigaJSON benchmark comparison by @vsanthanam in #506
- Fix useNull strategy erroneously encoding every floating-point value as null by @vsanthanam in #509
- Flexible width number storage by @vsanthanam in #511
- Support for 128-bit integers by @vsanthanam in #519
- Bundle version information into XCFrameworks by @vsanthanam in #523
Full Changelog: 3.1.1...4.0.0