[Helma-user] file read and processing pretty slow. ideas?
Joshua Paine
joshua at papercrown.org
Wed Jul 18 00:59:51 CEST 2007
Joshua Paine wrote:
> Java 1.4.2 via the gcj java package that comes with Fedora Core 6
"There's your problem right there."
I got rid of FC6's default Java and installed sun's binary 6u2 package
for AMD64. Now runtimes for the whole thing are down to 1.2 sec. So, for
the record, java-1.4.2-gcj-compat is totally unacceptable for running
Helma, but so far Sun's latest works very nicely. It's too bad it's
non-free, but for now I'm willing to be pragmatic and comfort myself
with the knowledge that it's theoretically possible to move to a free
Java implementation should it ever become necessary sometime in The
Future (when hopefully, there's an adequate one. which there might
already be for all I know.).
helma.File is still ~10x slower than File, though. Just reading the file
line by line:
With File:
0.061, 0.019, 0.023, 0.018, 0.018, 0.021, 0.017
With helma.File:
0.526, 0.343, 0.147, 0.147, 0.142, 0.143, 0.144
Ok, so actually it takes about 8x as long. Still a heck of a lot longer.
-Joshua
More information about the Helma-user
mailing list