diff options
author | Karsten Blees <karsten.blees@gmail.com> | 2014-07-03 00:22:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-07 13:56:38 -0700 |
commit | 7b64d42d22206d9995a8f0cb3b515e623cac4702 (patch) | |
tree | 26895c5fde113b1d84f52409f951feb37f451412 /Documentation/RelNotes/1.7.0.1.txt | |
parent | hashmap: add simplified hashmap_get_from_hash() API (diff) | |
download | tgif-7b64d42d22206d9995a8f0cb3b515e623cac4702.tar.xz |
hashmap: add string interning API
Interning short strings with high probability of duplicates can reduce the
memory footprint and speed up comparisons.
Add strintern() and memintern() APIs that use a hashmap to manage the pool
of unique, interned strings.
Note: strintern(getenv()) could be used to sanitize git's use of getenv(),
in case we ever encounter a platform where a call to getenv() invalidates
previous getenv() results (which is allowed by POSIX).
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.0.1.txt')
0 files changed, 0 insertions, 0 deletions