Lists, tuples and memory.
Christopher T King
squirrel at WPI.EDU
Fri Jul 16 14:21:29 EDT 2004
More information about the Python-list mailing list
Fri Jul 16 14:21:29 EDT 2004
- Previous message (by thread): Lists, tuples and memory.
- Next message (by thread): Lists, tuples and memory.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 16 Jul 2004, Peter Otten wrote: > Christopher T King wrote: > > > Try using a set instead of a dictionary. You should get the good access > > time of dictionaries with nearly the low memory usage of a list: > > sets.Set() holds its data in a dict. I fear the same goes for 2.4's builtin > set type which is coded in C but also built on top of dict. Ick. I thought part of the reason Set was created (aside from enabling set operations) was to improve on the dict() storage method.
- Previous message (by thread): Lists, tuples and memory.
- Next message (by thread): Lists, tuples and memory.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list