Re: [PATCH 3/3] pretty=format: Avoid some expensive calculations when not needed
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 6, 2007, 23:36 UTC
- Message-ID
- <Pine.LNX.4.64.0711062335150.4362@racer.site>
- In-Reply-To
- <4730EB4E.4080903@lsrfire.ath.cx>
Hi,
On Tue, 6 Nov 2007, René Scharfe wrote:
Show 12 quoted lines
> -char *interp_find_active(const char *orig,
> - const struct interp *interps, int ninterps)
> +void interp_find_active(const char *orig, struct interp *interps, int ninterps)
> {
> - char *result = xcalloc(1, ninterps);
> char c;
> int i;
>
> + for (i = 0; i < ninterps; i++)
> + interps[i].active = 0;
> +
> [...]Funny.
I have the _exact_ same change in my repository. I only forgot to send it, it seems.
Ciao, Dscho