APKParser icon indicating copy to clipboard operation
APKParser copied to clipboard

Request: allow to avoid parsing resource table, or at least till it's needed

Open AndroidDeveloperLB opened this issue 8 years ago • 0 comments

For a lite usage of this library, only querying basic information about the manifest, you could avoid parsing the resource table, hence improving memory usage and speed of parsing by a huge amount of time.

For comparison, when commenting the "parseResourceTable" function content from ApkParser, I got these results:

Before change: 72,567 ms and up to 86MB of heap memory used for 230 apps, average time: 315ms per app. After change: 28064 ms and up to 14MB of heap memory usage for the same 230 apps , average time: 122ms per app.

that's x2.5 faster , and x6 more memory friendly.

AndroidDeveloperLB avatar Apr 24 '17 23:04 AndroidDeveloperLB