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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux