skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.99k stars 4.9k forks source link

[core] Resource table is being parsed twice #2263

Closed pubiqq closed 2 months ago

pubiqq commented 3 months ago

Issue details

This bug used to only increase parsing time, but now because of it and b85900a, resources are being generated with double entries.

Screenshot

![](https://github.com/user-attachments/assets/29571ea2-1b85-440d-83a0-302fd6f11aaa)

Jadx version

cca706c

skylot commented 2 months ago

Fixed. Some details:

@pubiqq thank you for report, it was very helpful :+1:

pubiqq commented 2 months ago

Honestly I was rather hoping that the solution would be to cache the ResourceStorage, and then the resources wouldn't have to be re-decoded.

Well, at least the resources are no longer duplicated now.