mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-04-30 21:34:25 +02:00
perf: Run the garbage collector after writing dex files
Writing dex files consumes a lot of memory.
This commit is contained in:
parent
642c4ea97e
commit
d9fb241d57
@ -115,6 +115,8 @@ class BytecodeContext internal constructor(private val options: PatcherOptions)
|
||||
) { _, entryName, _ -> logger.info("Compiled $entryName") }
|
||||
}.listFiles(FileFilter { it.isFile })!!.map { PatcherResult.PatchedDexFile(it.name, it.inputStream()) }
|
||||
|
||||
System.gc()
|
||||
|
||||
return patchedDexFileResults
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user