[Top][All Lists]

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

Re: outdated m4sugar

From: Akim Demaille
Subject: Re: outdated m4sugar
Date: Thu, 24 Jul 2008 17:35:21 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

>>> "EB" == Eric Blake <address@hidden> writes:

 >> The non-use of frozen files is probably just the result of laziness:
 >> it's too hard to set up and use.  If we had autom4te instead of m4
 >> directly, we would probably use frozen files.  I have no idea what
 >> the speed-up would be though.

 > Here's some quick profiling numbers, executed on cygwin, using
 > autoconf.git's current m4sugar with branch-1.6 of m4, and picking the best
 > time from several runs each:

 > $ time m4 /dev/null # Do nothing, for reference

 > real 0m0.062s
 > user 0m0.030s
 > $ time m4 -I lib m4sugar/m4sugar.m4 /dev/null # Load m4sugar from scratch

 > real 0m0.140s
 > user 0m0.093s
 > $ m4 -F f.m4f -I lib m4sugar/m4sugar.m4 # Freeze...
 > $ time m4 -R f.m4f /dev/null # then load m4sugar from frozen

 > real 0m0.063s
 > user 0m0.030s

But I guess that in the case of Bison, most of the cost is really in
the "runtime" part, not the "load it all" part.  Yet it would be
interesting to make a try.  I'll see if I can try that.

reply via email to

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