bug-bison
[Top][All Lists]
Advanced

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

Re: slow bison run


From: Hans Aberg
Subject: Re: slow bison run
Date: Wed, 18 May 2005 15:24:04 +0200

At 02:26 +0200 2005/05/18, Hans Aberg wrote:
At 16:18 -0700 2005/05/16, Paul Eggert wrote:
> The m4 version of bison is much slower with this file than the cpp version.
 It looks like most of the additional time is spent in m4.

Yes, the current version of Bison is way, way too slow for large
grammars.  (Your grammar took 90 seconds for Bison to process on my
2.4 GHz Pentium 4 box.)  Fixing this is on my long list of things to do.

In the mean time you should consider installing the latest version of
GNU m4, as it's a bit faster.

Would it be faster with Guile?

Specifically, I think it might be faster with Guile than with M4, as it has a properly designed functional language at the core. There is supposedly a Bison version around with Guile attached. So it would be interesting to feed it with a large grammar, and time it, relative the Bison-M4 version. If it is significantly faster, it will mean that there is no problem to spend too much effort on the Bison-M4 version.
--
  Hans Aberg




reply via email to

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