I need to parse XML either in C/C++ or Java.
Which one is fast?
I think SAX parser will be ok with java
Pl. help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Generally C++ is compiled to native code while java is compiled to byte code and then is interpreted at runtime. Therefore C++ code should theoretically run fater.
But due to automatic memory management and other good features java development is much easier and faster. The big question is do you really ned some extraordinal performance requirements here? If not, implement everything in java. If you do have such requirements think about other options.
And BTW, why SAX? It is the hardest (and really fastest) whay to parse XML. Did you problably think about easier ways like JAXB? It requires 1% of efforts (relatively to SAX).