Skip to content

Commit 8e22a2c

Browse files
author
José Valim
committed
Update lib/elixir/lib/hash_dict.ex
Update comments
1 parent 8ced611 commit 8e22a2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/elixir/lib/hash_dict.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ defmodule HashDict do
1717
# per bucket. We use bit shifting to make rehashing faster on
1818
# expansion.
1919
#
20-
# However, compared to dict, it provides many enhancements:
20+
# Compared to dict, it provides many enhancements:
2121
#
2222
# 1. HashDict buckets are ordered sets, this gives us faster access
2323
# and modification times
2424
#
2525
# 2. It uses phash2 to calculate the hash (instead of phash)
2626
#
2727
# 3. The dictionary first starts with a single bucket, instead of
28-
# a set of buckets with 16 buckets. This allow us to skip hashing
29-
# altogher for small dictionaries, providing faster operations
30-
# and reducing memory consumption
28+
# a set of 8 buckets. This allow us to skip hashing altogher
29+
# for small dictionaries, providing faster operations and
30+
# reducing memory consumption
3131
#
3232
# 4. Once we reach 8 elements, the dictionary is promoted to a
3333
# set of buckets

0 commit comments

Comments
 (0)