[antlr-interest] Re: BENCHMARK. ANTLR. Bad results.

Alex Sedow alexsedow at mail.ru
Sat Nov 13 13:35:25 PST 2004


> --- In antlr-interest at yahoogroups.com, Ruslan Zasukhin <sunshine at p...>
> wrote:
>
> > > More importantly, how can you convince other people to accept your
> > > speculation?.
> >
> > Alex Sedow already have give you exact numbers:
> >     3-4 times speed up thanks to special string + allocator.
>
> OK, I got a 5-7x speedup just by buffering the whole input (tested
> with C# not C++). In your tests, were you reading from a file or
> memory buffer?

This is just a result of comparison my two old hand-written C++ lexers (with
preprocessors), with std::string and after replacing it with custom hash
string + allocator. And never more.

Little question. Why ANTLR still use buffering for source files? I think
modern computers and operating systems has enough physical or virtual memory
to load full source file. Maybe better remove buffering and simplify logic?

Alex.

>
> Micheal
> ANTLR/C#



 
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