bison-patches
[Top][All Lists]
Advanced

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

Re: Bison torture test speedup: `assert (x);' -> `if (! (x)) abort ();'


From: Akim Demaille
Subject: Re: Bison torture test speedup: `assert (x);' -> `if (! (x)) abort ();'
Date: 12 Nov 2002 08:54:49 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter)

| Bison's "make check" was taking too long for me, so I installed the
| following patch to speed up the slowest test by a factor of 10.
| "make check" still takes too long, but it's progress.
| 
| 2002-11-09  Paul Eggert  <address@hidden>
| 
|       * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR,
|       AT_DATA_HORIZONTAL_GRAMMAR, AT_DATA_LOOKAHEADS_GRAMMAR,
|       AT_DATA_STACK_TORTURE): Replace `assert (x);' with `if (! (x))
|       abort ();'.  This reduces the runtime of the "Many lookaheads"
|       test from 27.6 to 2.7 minutes on a 440 MHz Ultrasparc III running
|       GCC 3.2.

Err...  This is shocking!  What is the difference between assert and if/abort???




reply via email to

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