Commit a2e4226
authored
return immediately from
Avoids hashing the input key for empty dictionaries.
Inspired by rust-lang/hashbrown#305.ht_keyindex if dictionary is empty (#44341)1 parent 2e2c16a commit a2e4226
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
0 commit comments