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

Guess you like

Origin www.cnblogs.com/yuanjiangw/p/11762078.html