C
Chris
Hi all,
I'm rewriting an application that produces lots of large integers. My
first version uses BigIntegers and writes them as decimal string to an
output file. To improve the performance, I implemented a second version
which uses long datatypes instead of BigIntegers, and
RandomAccessFile's writeLong() function. But instead of improving the
performance, this second version is much slower than the first version.
What might be the reason for this unexpected behaviour?
Thanks for any hints,
Chris
PS: I'm using "java 1.4.2" from SUN.
I'm rewriting an application that produces lots of large integers. My
first version uses BigIntegers and writes them as decimal string to an
output file. To improve the performance, I implemented a second version
which uses long datatypes instead of BigIntegers, and
RandomAccessFile's writeLong() function. But instead of improving the
performance, this second version is much slower than the first version.
What might be the reason for this unexpected behaviour?
Thanks for any hints,
Chris
PS: I'm using "java 1.4.2" from SUN.