OpenSearch/libs/x-content
David Turner 1a3916a8de Optimise rejection of out-of-range `long` values (#40325)
Today if you try and insert a very large number like `1e9999999` into a long
field we first construct this number as a `BigDecimal`, convert this to a
`BigInteger` and then reject it because it is out of range. Unfortunately
making such a large `BigInteger` is rather expensive.

We can avoid this expense by performing a (weaker) range check on the
`BigDecimal` representation of incoming `long`s too.

Relates #26137
Closes #40323
2019-03-28 12:27:34 +00:00
..
licenses CORE: Upgrade to Jackson 2.8.11 (#32670) 2018-08-08 12:04:25 +02:00
src Optimise rejection of out-of-range `long` values (#40325) 2019-03-28 12:27:34 +00:00
build.gradle Split third party audit exclusions by type (#36763) 2019-01-07 17:24:19 +02:00