mbox series

[0/2] name-rev: use memory pool for name strings

Message ID 20240225113947.89357-1-l.s.r@web.de (mailing list archive)
Headers show
Series name-rev: use memory pool for name strings | expand

Message

René Scharfe Feb. 25, 2024, 11:39 a.m. UTC
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