I'm writing an application in Java, and trying to get the best performance out of it. Currently it can handle 250,000 of a specific operation every second.
However, I discovered a bug. Due to the way this application works I have to take a number that is from the user input, that can be up to x,xxx,xxx,xxx and then to this I also have to add a timestamp in milliseconds.
Of course, I forgot about this and soon discovered that all of my values were negative.
Now, initially my thought was to just use BigIntegers, but will this not destroy the performance?
What is the best way to handle large integers in low latency applications.