[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: time in invoking the Lex Yacc parser
From: |
John W. Millaway |
Subject: |
Re: time in invoking the Lex Yacc parser |
Date: |
Tue, 14 Aug 2001 05:18:55 -0700 (PDT) |
> parser itself and continue.The issue here is whether invoking the parser a
> 100 times is more costlier(timewise) than invoking it once and completing
> the flow a hundred times inside the parser.And if there is big difference in
> time what are the orders of magnitude?
The answer is architecture-dependent. If you're worried about saving cycles at
that level, you should be using a profiler.
$ gcc -pg -O3 parser.c -o parser
$ ./parser
$ gprof
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/