From: John Wolfe Date: Tue, 21 Dec 2021 20:48:49 +0000 (-0800) Subject: filePosix.c: Increased the hash table size for better performance. X-Git-Tag: stable-12.0.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ca3a1d1ff4edb9ab6dbe5e30079167710ee5d06;p=thirdparty%2Fopen-vm-tools.git filePosix.c: Increased the hash table size for better performance. Improved the performance of the functions File_ListDirectory() and File_WalkDirectoryStart(). --- diff --git a/open-vm-tools/lib/file/filePosix.c b/open-vm-tools/lib/file/filePosix.c index 8cbf4153d..ee36700ea 100644 --- a/open-vm-tools/lib/file/filePosix.c +++ b/open-vm-tools/lib/file/filePosix.c @@ -2996,7 +2996,7 @@ File_WalkDirectoryStart(const char *dirName) // IN: context = Util_SafeMalloc(sizeof *context); context->dirName = Util_SafeStrdup(dirName); - context->hash = HashTable_Alloc(256, HASH_STRING_KEY, NULL); + context->hash = HashTable_Alloc(2048, HASH_STRING_KEY, NULL); context->dir = Posix_OpenDir(dirName); if (context->dir == NULL) {