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