This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger, serhiy.storchaka
Date 2015-01-17.23:52:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421538745.45.0.265538821787.issue23259@psf.upfronthosting.co.za>
In-reply-to
Content
Even in the mesh algorithm, we let resizing periodically clean-up the dummies.   The idea is to not pay the freeslot tracking cost on every lookup and instead only clean-up periodically (which would likely give better performance for the mesh algorithm as well, since making a single pass clean-up during resizing is cheaper than doing multi-step tracking for every insertion).  The slots do get reused, just not immediately.

Also, the idea is to not let the possibility of pop-change-update algorithms create a cost for the more common uses of sets (uniquification, fast membership testing, and set-to-set operations such as union, intersection, and difference).
History
Date User Action Args
2015-01-17 23:52:25rhettingersetrecipients: + rhettinger, serhiy.storchaka
2015-01-17 23:52:25rhettingersetmessageid: <1421538745.45.0.265538821787.issue23259@psf.upfronthosting.co.za>
2015-01-17 23:52:25rhettingerlinkissue23259 messages
2015-01-17 23:52:25rhettingercreate