A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-March/125017.html below:

[Python-Dev] py2.7: dictobject not properly resizing

[Python-Dev] py2.7: dictobject not properly resizing [Python-Dev] py2.7: dictobject not properly resizingMicha Gorelick mynameisfiber at gmail.com
Sat Mar 30 23:30:38 CET 2013
True, but your example mechanism of getting a shrink event is purely
based on ma_fill.  This is happening because your last loop is
increasing ma_fill to the point where it thinks it needs to resize
because of the load factor and then it calculates the new size based
on ma_used.  The comment that I pointed out from the code seems to
imply that simply having ma_fill >> ma_used will trigger a resize.
The two conditions for a resize are definitely not equivalent!

Micha
-----------------------------
http://micha.gd/
http://github.com/mynameisfiber/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4