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/2003-May/035338.html below:

[Python-Dev] Dictionary sparseness

[Python-Dev] Dictionary sparseness [Python-Dev] Dictionary sparsenessRaymond Hettinger python@rcn.com
Mon, 5 May 2003 14:12:53 -0400
> the best thing a user can do is rebuild the dict from scratch, inserting keys by
> decreasing order of access frequency.

Then a periodic resize comes alongm re-inserting everything
in a different order.


>The size of the dict can be forced larger by
> inserting artificial keys, if a user is insane <wink>. 

Uh oh:
    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/198157


> You'd have to be nuts, though 

That explains alot ;)


Does the *4 patch (amended to have an upper bound) have a chance?
It's automatic, simple, benefits some cases while not harming others,


Raymond



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