Skip to content
Browse files

Fixed: zlib compression level used in region files is now 2.

This is much faster than the default compression level, 9.
  • Loading branch information...
1 parent 613d7b3 commit ccce8cdc736dce695a43ee329544de80eecef56e @codewarrior0 codewarrior0 committed Nov 14, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 regionfile.py
View
6 regionfile.py
@@ -12,11 +12,7 @@
__author__ = 'Rio'
def deflate(data):
- # zobj = zlib.compressobj(6,zlib.DEFLATED,-zlib.MAX_WBITS,zlib.DEF_MEM_LEVEL,0)
- # zdata = zobj.compress(data)
- # zdata += zobj.flush()
- # return zdata
- return zlib.compress(data)
+ return zlib.compress(data, 2)
def inflate(data):
return zlib.decompress(data)

0 comments on commit ccce8cd

Please sign in to comment.
Something went wrong with that request. Please try again.