[Top][All Lists]

[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>
|       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]