QuickWrite/fluent4j

Speed up Numbers

Opened this issue · 2 comments

It seems like numbers themselves are quite slow. This should be fixed.

It seems like the problem lies in the instantiation of the Numbers in the ArgumentContainer and it lies in the implementation of ICUs library. Maybe there is a way to avoid that instantiation completely.

But it seems like the numbers are getting cached. This is good and bad at the same time as it means that the developers of that library know that this is a problem and they have done a more-or-less hacky solution so that that problem does not really occur that often.
This is good as many numbers occur quite often, but sometimes new numbers will appear which means that the slowdown is there again.