Add string-specific memory pool
Intern strings so they can be compared by address and stored without wasting space. This library uses the macros in the obj_pool.h and trp.h to create a memory pool for strings and expose an API for handling them. [rr: added API docs] [jn: with some API simplifications, new documentation and tests] Signed-off-by: NDavid Barr <david.barr@cordelta.com> Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com> Signed-off-by: NJonathan Nieder <jrnieder@gmail.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
Showing
test-string-pool.c
0 → 100644
vcs-svn/string_pool.c
0 → 100644
vcs-svn/string_pool.h
0 → 100644
vcs-svn/string_pool.txt
0 → 100644
想要评论请 注册 或 登录