java2script icon indicating copy to clipboard operation
java2script copied to clipboard

BigDecimal is rather slow

Open BobHanson opened this issue 1 year ago • 0 comments

The issue here is the time required to process Long values correctly. The method works for significant tasks such as calculating the value of pi to 10000 digits, but it is slow in JavaScript.

A solution is in the works that removes the need for Long processing. (This was the basis for BigInteger prior to the newer long-as-int[3] idea I developed, which is implemented currently.)

BitInteger is working fine without Long in local testing; the only challenge here is to adjust BigDecimal to work with it. It's not a huge task, but it's also not a priority for me since it is only a speed issue.

BobHanson avatar Feb 25 '24 16:02 BobHanson