and the Java version is slower..... MUCH slower. The php version running on our webserver (p4 3ghz, 1 gig ram, gentoo linux, apache) runs in about 11 seconds compared to the java version on my machine (amd64 3500+, 2gig ram, winXP) which can take upwards of a minute.
I'm running the Java class out of eclispe so I'm hoping thats partially why, but still, I expected a little better performance than this. Its essentially the same logic but using some java datatypes like HashMaps instead of PHP arrays figuring this would speed up the process exponentially.
When I go home for lunch I'll get the java code and post them both. The php version does have the advantage of having the MySQL database on the same host but I'm not sure that would make that big of a difference because queries are only ran at the beginning and end of both files. Is java really THAT slow?
I'm running the Java class out of eclispe so I'm hoping thats partially why, but still, I expected a little better performance than this. Its essentially the same logic but using some java datatypes like HashMaps instead of PHP arrays figuring this would speed up the process exponentially.
When I go home for lunch I'll get the java code and post them both. The php version does have the advantage of having the MySQL database on the same host but I'm not sure that would make that big of a difference because queries are only ran at the beginning and end of both files. Is java really THAT slow?