Current implementation of getNumberType() is bit inefficient as it forces creation of BigInteger, checks, and it looks like IonReader actually has method to help with that (not sure when it was added but seems to be included in 1.4.0 of ion-java).
@mcliedtke Created this issue (as I had to add a minor thing in master for 3.0 of JsonParser impl), seems like easy to improve, but not sure when I have time to tackle.
Current implementation of
getNumberType()
is bit inefficient as it forces creation ofBigInteger
, checks, and it looks likeIonReader
actually has method to help with that (not sure when it was added but seems to be included in 1.4.0 ofion-java
).