Skip to content

Commit

Permalink
Default compression level set to 9.
Browse files Browse the repository at this point in the history
This is best for solid compressed buffers, like the ones that the
blosc python package is designed to work with (specially medium to
large array pickles).
  • Loading branch information
Francesc Alted committed Sep 30, 2010
1 parent f5b7be3 commit 8d7552f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blosc/toplevel.py
Expand Up @@ -105,8 +105,8 @@ def free_resources():
_ext.free_resources()


def compress(string, typesize, clevel=5, shuffle=True):
"""compress(string, typesize[, clevel=5, shuffle=True]])
def compress(string, typesize, clevel=9, shuffle=True):
"""compress(string, typesize[, clevel=9, shuffle=True]])
Returns compressed string.
Expand All @@ -118,7 +118,7 @@ def compress(string, typesize, clevel=5, shuffle=True):
The data type size.
clevel : int (optional)
The compression level from 0 (no compression) to 9
(maximum compression). The default is 5.
(maximum compression). The default is 9.
shuffle : bool (optional)
Whether you want to activate the shuffle filter or not.
The default is True.
Expand Down

0 comments on commit 8d7552f

Please sign in to comment.