Re: [PATCH 3/3] pretty=format: Avoid some expensive calculations when not needed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: René Scharfe
Date: Wednesday, November 7, 2007 - 4:21 pm

Pierre Habouzit schrieb:

Grepping through the source I see several places that can be simplified
by converting them to strchrnul(), so I think introducing this GNU
extension is a good idea in any case.

Using strchr()/strchrnul() instead of strbuf_addch()'ing is sensible, of
course.  I don't like the duplicate code in your sketch above, though.
I'll try to look into it later today.

Thanks!
René
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Make user formatted commit listing less expensive, Johannes Schindelin, (Sun Nov 4, 12:14 pm)
[PATCH 1/3] Split off the pretty print stuff into its own file, Johannes Schindelin, (Sun Nov 4, 12:15 pm)
[PATCH 2/3] interpolate.[ch]: Add a function to find which ..., Johannes Schindelin, (Sun Nov 4, 12:15 pm)
[PATCH 3/3] pretty=format: Avoid some expensive calculatio ..., Johannes Schindelin, (Sun Nov 4, 12:15 pm)
Re: [PATCH 3/3] pretty=format: Avoid some expensive calcul ..., Johannes Schindelin, (Mon Nov 5, 4:53 pm)
Re: [PATCH 3/3] pretty=format: Avoid some expensive calcul ..., Johannes Schindelin, (Tue Nov 6, 4:36 pm)
[PATCH 1/2] interpolate.[ch]: Add a function to find which ..., Johannes Schindelin, (Tue Nov 6, 4:38 pm)
[PATCH 2/2] pretty=format: Avoid some expensive calculatio ..., Johannes Schindelin, (Tue Nov 6, 4:38 pm)
Re: [PATCH 3/3] pretty=format: Avoid some expensive calcul ..., Johannes Schindelin, (Tue Nov 6, 4:45 pm)
Re: [PATCH 3/3] pretty=format: Avoid some expensive calcul ..., René Scharfe, (Wed Nov 7, 4:21 pm)
Re: [PATCH 3/3] pretty=format: Avoid some expensive calcul ..., Johannes Schindelin, (Wed Nov 7, 5:14 pm)