Skip to content

Commit

Permalink
Merge 644a99c into 0a9abc1
Browse files Browse the repository at this point in the history
  • Loading branch information
petvana committed Mar 18, 2023
2 parents 0a9abc1 + 644a99c commit 4e3a4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/dict.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ ht_keyindex2!(h::Dict, key) = ht_keyindex2_shorthash!(h, key)[1]

sz = length(h.keys)
# Rehash now if necessary
if h.ndel >= ((3*sz)>>2) || h.count*3 > sz*2
# > 3/4 deleted or > 2/3 full
if (h.count + h.ndel)*3 > sz*2
# > 2/3 full (including tombstones)
rehash!(h, h.count > 64000 ? h.count*2 : h.count*4)
end
nothing
Expand Down

0 comments on commit 4e3a4dd

Please sign in to comment.