[antlr-interest] BENCHMARK. ANTLR. Bad results.
Paul J. Lucas
pauljlucas at mac.com
Fri Nov 12 15:19:46 PST 2004
On Sat, 13 Nov 2004, Ruslan Zasukhin wrote:
> * but IMHO on of the main problems of ANTLR C++, is that it heavally uses
> std::string class and a lots of *copying* of string when it parse tokens.
std::string (indeed, std:: everything) isn't usually (depending
on your C++ vendor) some half-assed implementation. The std
classes are *supposed* to be written well so that people will
use them.
Writing yet another string class makes any API using them
annoying because then you often have to convert foo::string to
std::string and vice-versa -- and that most definitely adds
overhead and negates any performance improvement you may have
gotten from using foo::string.
Granted, it's always possible to use an efficient tool in an
inefficient way, so yes it's possible that std::string isn't
being used efficiently; but that suggests correcting the use,
not replacing the tool.
- Paul
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list