mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
399f2f401c
calloc is more effecient than malloc+memset when the system uses mmap to allocate memory. mmap always returns zeroed memory so the memset can be avoided. The threshold to use mmap is 16k in osx libc and 128k in bsd libc and glibc. The kernel can lazily allocate the pages, this reduces memory usage when we have a page table or hash table that is mostly empty. This change is most visible when you start a new redis instance with vm enabled. You'll see no increased memory usage no matter how big your page table is. |
||
---|---|---|
client-libraries | ||
design-documents | ||
doc | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
BUGS | ||
Changelog | ||
COPYING | ||
INSTALL | ||
Makefile | ||
README | ||
redis.conf | ||
TODO |
Check the 'doc' directory. doc/README.html is a good starting point :)