On Tue, Nov 24, 2009 at 03:22:38 +0000, Trent W. Buck wrote:
> Even if -O1 (the default) produces a binary that's less performant
> than -O2, why is that important? The current behaviour essentially
> forces ALL users to use -O2, regardless of the Cabal defaults or user
> preferences (i.e. ~/.cabal and --enable-optimization=N).
Because (I claim) users generally want a fast Darcs than a fast compiled
Darcs.
These users would be forced to explicitly pass in flag (not acceptable
because they won't do it, either by oversight or otherwise) or modify
their Cabal defaults for all packages and not just Darcs (not
acceptable, ick). What we really want is for Darcs to supply -O2 as a
default which can then be overridden. Simpler would be if the
performance gains were negligible, in which case we should just drop the
default.
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
|