We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4e32f commit bbbf84dCopy full SHA for bbbf84d
Tools/i18n/msgfmt.py
@@ -90,7 +90,7 @@ def hash_insert_entry(string, i):
90
# Because unsuccessful searches are unlikely this is a good value.
91
# Formulas: [Knuth, The Art of Computer Programming, Volume 3,
92
# 766 Sorting and Searching, 1973, Addison Wesley]
93
- hash_tab_size = next_prime((len(sorted(MESSAGES.keys())) * 4) // 3)
+ hash_tab_size = next_prime((len(MESSAGES) * 4) // 3)
94
if hash_tab_size <= 2:
95
hash_tab_size = 3
96
hash_table = array.array("I", [0] * hash_tab_size)
0 commit comments