]> git.saurik.com Git - redis.git/commit
sds.c new function sdsRemoveFreeSpace().
authorantirez <antirez@gmail.com>
Wed, 14 Mar 2012 09:13:23 +0000 (10:13 +0100)
committerantirez <antirez@gmail.com>
Wed, 14 Mar 2012 14:36:20 +0000 (15:36 +0100)
commitf9322fb8ed9d47a79a64e7b72485e08f256f2936
tree4ae453c22fea39cda72a4596a4c216ebd6fde974
parent5e473cd8fd461b64dc4909ec5b611ac2f1acbf2a
sds.c new function sdsRemoveFreeSpace().

The new function is used in order to resize the string allocation so
that only the minimal allocation possible is used, removing all the free
space at the end of the string normally used to improve efficiency of
concatenation operations.
src/sds.c