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

posted @ 2019-10-29 22:38  papering  阅读(114)  评论(0编辑  收藏  举报