Message ID | 2681a80b-2ff8-1b63-b699-9895a064a4ad@inlv.org (mailing list archive) |
---|---|
State | Rejected |
Delegated to: | Herbert Xu |
Headers | show |
On Fri, Mar 23, 2018 at 05:05:53PM +0100, Martijn Dekker wrote: > > So how about having it both ways? If DEBUG is defined, record empty > split regions. If not, don't waste cycles doing so. You are trying to save cycles by adding a branch that's going to be true most of the time, I don't see how that could work performance wise. Thanks,
diff --git a/src/expand.c b/src/expand.c index c14350c..d6c7946 100644 --- a/src/expand.c +++ b/src/expand.c @@ -774,7 +774,12 @@ record: if (!quoted) goto end; } - recordregion(startloc, expdest - (char *)stackblock(), quoted); +#ifndef DEBUG + if (varlen > 0) +#endif + recordregion(startloc, + expdest - (char *)stackblock(), + quoted); goto end; }