From b4b952d78d262f1604a482d13ebc590b89221e30 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sun, 29 Nov 2020 14:35:23 +0100 Subject: Use common values for initial size estimates for Hashtables --- ProcessList.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProcessList.c b/ProcessList.c index 9597fcb9..f90f99e9 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -20,7 +20,7 @@ in the source distribution for its full text. ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, UsersTable* usersTable, Hashtable* pidMatchList, uid_t userId) { this->processes = Vector_new(klass, true, DEFAULT_SIZE); - this->processTable = Hashtable_new(140, false); + this->processTable = Hashtable_new(200, false); this->usersTable = usersTable; this->pidMatchList = pidMatchList; this->userId = userId; @@ -28,8 +28,8 @@ ProcessList* ProcessList_init(ProcessList* this, const ObjectClass* klass, Users // tree-view auxiliary buffer this->processes2 = Vector_new(klass, true, DEFAULT_SIZE); - this->displayTreeSet = Hashtable_new(4096, false); - this->draftingTreeSet = Hashtable_new(4096, false); + this->displayTreeSet = Hashtable_new(200, false); + this->draftingTreeSet = Hashtable_new(200, false); // set later by platform-specific code this->cpuCount = 0; -- cgit v1.2.3