[antlr-interest] C++ is slower than Java?
Ruslan Zasukhin
sunshine at public.kherson.ua
Sun Feb 24 09:40:28 PST 2002
on 2/24/02 15:23, keren_jefet at keren_jefet at yahoo.com wrote:
> Hi,
>
> I have tested the java.g example both on Java-generated parser, and
> on Cpp-generated parser (antlr-2.7.1, buildAST=true).
> Surprisingly, I found out that the Java parser, was significantly
> faster than the Cpp one, especially when handling long java source
> files. (sometimes even 600% faster...)
>
> How can that be?
> Is this related to the specific java.g grammar definitions, or maybe
> it is true for all parsers, no matter of the grammar complexity?
Sounds incredibly!
I think you need contact Ric (main developer of C++ branch) and send to him
your C++ and Java projects. So Ric will be able to see self speed
difference.
May be Ric will be able profile and find bad code in C++ part.
--
Best regards,
Ruslan Zasukhin
-------------------------
Paradigma.
e-mail: ruslan at paradigmasoft.com
web : http://www.paradigmasoft.com
To subscribe to the Valentina mail list
send a letter to valentina-on at lists.macserve.net
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list