diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-11-29 14:35:23 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-02 23:50:05 +0100 |
commit | b4b952d78d262f1604a482d13ebc590b89221e30 (patch) | |
tree | 219677a054e508615d736368c907dfc8c865401d | |
parent | 4907d90cffde5cdba4ccf427db9c7a5ad4e4c733 (diff) |
Use common values for initial size estimates for Hashtables
-rw-r--r-- | ProcessList.c | 6 |
1 files 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; |