mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-12 17:35:44 +00:00
updated internals docs: hash table max. load factor is 0.75 now
This commit is contained in:
parent
2ecfa54aee
commit
393e36b6da
1 changed files with 3 additions and 3 deletions
|
@ -276,10 +276,10 @@ buckets. As a consequence the hash is just a start position for a linear
|
|||
search, and if the element is not in the table the index is linearly crossed
|
||||
until an empty bucket is found.
|
||||
|
||||
When the hash table is almost full at 90%, its size is doubled. When it's
|
||||
almost empty at 25%, its size is halved. So operations on it have a variable
|
||||
When the hash table is filled to 75%, its size is doubled. When it's
|
||||
emptied to 25%, its size is halved. So operations on it have a variable
|
||||
complexity between constant and linear with low factor, and memory overhead
|
||||
varies between 10% and 300%.
|
||||
varies between 33% and 300%.
|
||||
|
||||
|
||||
Indexes / Caches memory usage
|
||||
|
|
Loading…
Reference in a new issue