Why does shelve make such large files?
Gerrit Holl
Gerrit.Holl at p98.f112.n480.z2.fidonet.org
Thu Jul 1 19:14:50 EDT 1999
More information about the Python-list mailing list
Thu Jul 1 19:14:50 EDT 1999
- Previous message (by thread): Why does shelve make such large files?
- Next message (by thread): Why does shelve make such large files?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Gerrit Holl <gerrit.holl at pobox.com> Hi, Is it really necesarry for shelve to make such large files? Have a look at this: /tmp> python Python 1.5.2 (#1, Apr 18 1999, 00:16:12) [GCC 2.7.2.3] on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import shelve >>> d = shelve.open('database') >>> d['key'] = 'value' >>> /tmp> ls -l database -rw-rw-r-- 1 gerrit gerrit 16384 Jul 1 21:13 database ^^^^^ 16 KB for only one key!!? pickle seems to make _much_ smaller files! Why is this? regards, Gerrit. -- The Dutch Linuxgames homepage: http://linuxgames.nl.linux.org Personal homepage: http://www.nl.linux.org/~gerrit/ Discoverb is a python program (in several languages) which tests the words you learned by asking it. Homepage: http://www.nl.linux.org/~gerrit/discoverb/ Oh my god! They killed init! You bastards!
- Previous message (by thread): Why does shelve make such large files?
- Next message (by thread): Why does shelve make such large files?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list