mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-30 11:18:39 +09:00
[packager] Optimize archive accesses.
This commit is contained in:
parent
48a4d20592
commit
d0dbdf4e8b
7 changed files with 107 additions and 30 deletions
|
|
@ -54,7 +54,7 @@ class UnpackFinder(BaseFinder):
|
|||
self.omnijar = None
|
||||
self.jarlogs = {}
|
||||
self.optimizedjars = False
|
||||
self.compressed = True
|
||||
self.compressed = False
|
||||
|
||||
jars = set()
|
||||
|
||||
|
|
@ -146,8 +146,7 @@ class UnpackFinder(BaseFinder):
|
|||
jar = JarReader(fileobj=file.open())
|
||||
if jar.is_optimized:
|
||||
self.optimizedjars = True
|
||||
if not any(f.compressed for f in jar):
|
||||
self.compressed = False
|
||||
self.compressed = max(self.compressed, jar.compression)
|
||||
if jar.last_preloaded:
|
||||
jarlog = jar.entries.keys()
|
||||
self.jarlogs[path] = jarlog[:jarlog.index(jar.last_preloaded) + 1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue