git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* strbuf `filter' API
@ 2007-10-05 20:19 Pierre Habouzit
       [not found] ` <1191615571-15946-2-git-send-email-madcoder@debian.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Habouzit @ 2007-10-05 20:19 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: git

  Ooookay,

  I wasn't more thrilled about the previous patch than linus is. Here is
a possible API to hide the muck in the strbuf.c module, and have a way
nicer to read code in convert.c.

  It remais as efficient as the previous code, tries to reuse the buffer
as much as possible to avoid reallocations, and deal with even more
cases (it's possible to have the "source" buffer be inside the
destination strbuf now, which could sometimes help a lot).

  I based this on top of master (because it's where my previous patch
was) but it should apply on next properly. It depends upon the previous
patch though.

  I'd say that the previous patch should go in master ASAP, and that
those two could be considered for next (having merged master in it first
btw).

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-08 18:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 20:19 strbuf `filter' API Pierre Habouzit
     [not found] ` <1191615571-15946-2-git-send-email-madcoder@debian.org>
2007-10-06  9:06   ` [PATCH 1/2] Have a filter_start/filter_end API Alex Riesen
2007-10-07 14:53     ` Pierre Habouzit
2007-10-07 16:07       ` Alex Riesen
2007-10-07 16:52         ` Pierre Habouzit
2007-10-07 21:50           ` Alex Riesen
2007-10-08  7:29             ` Pierre Habouzit
2007-10-08 18:48               ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).