Avoid awkward string buffer pre-sizing by adding and using an efficient mem-pool-backed string format function. mem-pool: add mem_pool_strfmt() name-rev: use mem_pool_strfmt() builtin/name-rev.c | 39 ++++++++++++++++++++------------------- mem-pool.c | 39 +++++++++++++++++++++++++++++++++++++++ mem-pool.h | 5 +++++ 3 files changed, 64 insertions(+), 19 deletions(-) -- 2.44.0