To avoid slowing down lookups on a near-full table, we resize the table when it's USABLE_FRACTION (currently two-thirds) full.

 https://github.com/python/cpython/blob/3.8/Objects/dictobject.c

猜你喜欢

转载自www.cnblogs.com/yuanjiangw/p/11762078.html