Thanks for your response. > Based on my experiences, I would assume that parsing a typical XML document > takes between 10 and 50 ms, which is comparable to a database query.
On whose machine? Sorry, I neglected to mention that my target platform is a 1Ghz Celeron with 256Mb RAM. The current C++/QT version of the application runs fine on this type of machine. On my P4 1.8 768Mb machine the Java version runs OK but I'm still seeing response times on the order of 150ms, with about 60% of this time taken in XML parsing. > Can you publish the *results*, so that we are able to discuss them? Excellent idea. I've profiled the JNI and Java versions separately using java -Xhprof, and the results are here: http://www.clever.co.nz/pricom_jni_results.tar.gz This was doing 100 iterations for each version (JNI and Java). The *.cpu.txt files are using -Xhprof:cpu=times,depth=10. The *.memory.txt files are using -Xhprof:depth=10. The strace.txt file is using strace on the JNI version and the *.output.txt files are the standard output from running each version. I've uncommented the C timing statements to get the results in the jni.output.txt file. I'm not very experienced in deciphering the output of these tools so any help you can give me would be very much appreciated. Regards Peter Butler
