Thread (16 messages) flat view 16 messages, 6 authors, 2016-06-15

Re: [PATCH] Simplify strbuf uses in fast-import.c using the proper functions.

From: Pierre Habouzit <hidden>
Date: 2016-06-15 22:43:33

Possibly related (same subject, not in this thread)

On Tue, Sep 04, 2007 at 11:46:59PM +0000, René Scharfe wrote:
Pierre Habouzit schrieb:
quoted
  This is just cleaner way to deal with strbufs, using its API rather than
reinventing it in the module (e.g. strbuf_append_string is just the plain
strbuf_addstr function, and it was used to perform what strbuf_addch does
anyways).
---
 archive-tar.c |   65 ++++++++++++++-------------------------------------------
 1 files changed, 16 insertions(+), 49 deletions(-)
Apart from the wrong subject line I really like this patch. :-D
  oh boy, yes I fixed that in my local patch collection. I'm waiting for
a few hours (days ?) to see if there will be some more comments, I've
integrated every single one done here already (and some I had on IRC
too), and I'll repost a new clean series that I intend to be a real
proposal for inclusion.

  And yes, this patch is a perfect example of the gain we have to share
a common buffer API. The code looks (at least to me) way nicer, and if
you look in the details, we perform as many memory allocations, copies,
and so on as in the previous version.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help