Fix NPE in BigDecimalParser and improve Performance
Summary:
This release fixes a NullPointerException and provides new optimised versions of the Double, Float, BigDecimal and BigInteger parsers for Java 21, and 22.
Fixes:
This release includes the following fixes:
- Issue #78: Fixes a NullPointerException which can occur whan parsing a BigDecimal number with 400 digits or more.
Changes:
This release also includes the following changes:
- On Java 22 and higher: Use the Foreign Function & Memory API for reading multiple digits at once from char arrays.
- On Java 21: Use Long.compress() for parsing digits in char arrays.
- On Java 19 and Java 20: Drop the optimisations for these JVMs. Please upgrade to Java 21.