A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/112709.html below:

Caching Strategies/Database question

Caching Strategies/Database question Caching Strategies/Database questionAlex Martelli aleaxit at yahoo.com
Thu Apr 26 14:21:33 EDT 2001
"Brian Kelley" <kelley at bioreason.com> wrote in message
news:3AE84904.C69D88C0 at bioreason.com...
> I am using a dictionary to hold
>
> {string:[list of integers]}
>
> key: values
>
> The dictionary is randomly accessed to add an integer to the list
> referenced by the string.

Just on the off-chance... are the integers in some restricted range
and their order in the list irrelevant?  If so, you may be able to
save a bundle by coding the list of integers as a bitset -- not
really Python-related, but sometimes still very useful.


Alex




More information about the Python-list 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