author | David Barr <david.barr@cordelta.com> | |
Mon, 9 Aug 2010 22:34:42 +0000 (17:34 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Aug 2010 02:35:37 +0000 (19:35 -0700) | ||
commit | 1d73b52f5ba4184de6acf474f14668001304a10c | |
tree | eab339299282709e45101c011ba57b565278a18e | tree | snapshot |
parent | 951f316470acc7c785c460a4e40735b22822349f | commit | diff |
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: David Barr <david.barr@cordelta.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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: David Barr <david.barr@cordelta.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore | diff | blob | history | |
Makefile | diff | blob | history | |
t/t0080-vcs-svn.sh | diff | blob | history | |
test-string-pool.c | [new file with mode: 0644] | blob |
vcs-svn/string_pool.c | [new file with mode: 0644] | blob |
vcs-svn/string_pool.h | [new file with mode: 0644] | blob |
vcs-svn/string_pool.txt | [new file with mode: 0644] | blob |