Thread (1 message) 1 message, 1 author, 2016-06-16

Re: [PATCH V2 3/3] strbuf: allow to use preallocated memory

From: Junio C Hamano <hidden>
Date: 2016-06-16 02:19:48

Michael Haggerty [off-list ref] writes:
* It's a little less manual bookkeeping, and thus less error-prone,
  than the current code.

* If somebody decides to add another character to the line but
  forgets to increase the allocation size, the code dies in testing
  rather than (a) overflowing the buffer, like the current
  code, or (b) silently becoming less performant, as if it used a
  preallocated but non-fixed strbuf.
Yeah, thanks.  A relization of pretty much the same came to me after
I wrote my last message on this topic.  The above two are
attractive.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help