[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: push parser implemenation

From: Bob Rossi
Subject: Re: push parser implemenation
Date: Sat, 8 Apr 2006 14:58:45 -0400
User-agent: Mutt/1.5.9i

On Fri, Apr 07, 2006 at 02:42:29PM +0200, Akim Demaille wrote:
> Bob,
> I'm starting to toy with your implementation, and to try to bench it.
> It seems that there is about a 15% performance loss of push.c compared
> to yacc.c, both used in pull mode without compiler optimization on my
> Mac.

You know, it would be possible to only create the structure for the push
parser mode, and to leave all variables declared in yyparse for normal
mode and for pure mode. This would be more m4 magic, but would fix the
performance problems.

I wrote it the way it is now because it was cleaner. I only had to do m4
magic for 'pv->yychar' vs 'yychar' for the 4 user visible variables
(instead of all the variables), because all 3 versions used the structure.

What do you think?
Bob Rossi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]