Reduce Python shelve size
问题 I'm using the shelve module with gdbm to store Python objects. I understand that shelve uses pickle to store the objects. Unfortunately, the sizes of my shelves are too large. I found this solution to bzip2 or gzip individual pickles. My question is: is there a way to make shelve compress all its pickles? 来源: https://stackoverflow.com/questions/53990501/reduce-python-shelve-size