Skip to content

Commit

Permalink
use lz4 as compress
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Sep 12, 2012
1 parent 31e5b48 commit 016bd6d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions dpark/utils.py
Expand Up @@ -3,13 +3,14 @@

def compress(s):
return _compress(s, 1)
#try:
# from snappy import compress, decompress
#except ImportError:
# try:
# from snappy import compress, decompress
# except ImportError:
# pass
try:
from lz4 import compress, decompress
except ImportError:
print 'no lz4 available'
#try:
# from snappy import compress, decompress
#except ImportError:
# pass

try:
from setproctitle import getproctitle, setproctitle
Expand Down

0 comments on commit 016bd6d

Please sign in to comment.