rovellipaolo / NinjaDroid

Ninja Reverse Engineering on Android APK packages
GNU General Public License v3.0
268 stars 49 forks source link

Optimize slow init functions (execution time ~25% faster) #18

Closed iantruslove closed 4 years ago

iantruslove commented 5 years ago

I finally got back to the memoize optimization, but went about it in a different, more explicit, but I think clearer way.

The expensive regex compilations are only done one time per class.

Tests pass this time :)

rovellipaolo commented 4 years ago

Awesome!! Thanks for this change! :)