From: William Duclot Date: Mon, 06 Jun 2016 15:13:37 GMT Subject: [PATCH V2 0/3] strbuf: improve API Message-ID: <20160606151340.22424-1-william.duclot@ensimag.grenoble-inp.fr> This patch series implements an improvment of the strbuf API, allowing strbuf to use preallocated memory. This makes strbuf fit to be used in performance-critical operations. * The first patch is simply a preparatory work, adding tests for existing strbuf implementation. * The second patch is also preparatory: rename a function for the third patch. * Most of the work is made in the third patch: handle pre-allocated memory, extend the API, document it and test it. As said in the third commit message, the idea comes from Michael Haggerty. William Duclot (3): strbuf: add tests pretty.c: rename strbuf_wrap() function strbuf: allow to use preallocated memory Makefile | 1 + pretty.c | 7 ++++--- strbuf.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- strbuf.h | 44 ++++++++++++++++++++++++++++++++++++++-- t/helper/test-strbuf.c | 229 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ t/t0082-strbuf.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 394 insertions(+), 17 deletions(-)