Conversion.isInt() is slow and allocates unnecessarily
Read Cobol data files in Java
Status: Beta
Brought to you by:
bruce_a_martin
Noticed, as we started to parse a few million records, that it was spending a lot of time in Conversion.isInt().
Turns out that it was mostly creating BigIntegers and handling exceptions when it failed.
The attached patch should speed that up, while reducing the allocation.
You're free to use it as is, or modify as you see fit.
Anonymous
Thanks for that, I have applied it to my code base.
There are a lot of performance improvements that could be made.
Released as part of 0.80.8f
This has been fixed