mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
compress level
This commit is contained in:
parent
aa37501b8f
commit
8072733c7f
@ -101,7 +101,8 @@ class PackageMaker:
|
||||
|
||||
source = open(uncompressedArchivePathname.toOsSpecific(), 'rb')
|
||||
target = open(compressedArchivePathname.toOsSpecific(), 'wb')
|
||||
z = zlib.compressobj(9)
|
||||
#z = zlib.compressobj(9) # Temporary.
|
||||
z = zlib.compressobj(1)
|
||||
data = source.read(4096)
|
||||
while data:
|
||||
target.write(z.compress(data))
|
||||
|
Loading…
x
Reference in New Issue
Block a user