4 ms·
It's conceptually similar, but we've focused on optimizations that add value on top of ProGuard - we do use ProGuard internally, so the improvements we're seein
by bertr4nd 11y ago
It's conceptually similar, but we've focused on optimizations that add value on top of ProGuard - we do use ProGuard internally, so the improvements we're seeing from ReDex are on top of that.
We get a lot of leverage out of operating on dex directly, as the final step in the build. For instance we can make really good inlining decisions because we know how many virtual registers the caller and callee use.
- amolgupta 11y agoDo I need to care about any more configurations when using it along with proguard? Like extra lines in proguard.txt or change of mapping files when uploading to my crash reporting tools?
- bertr4nd 11y agoYou shouldn't need to change your proguard config to use redex. For mapping files, the one thing that can trip people up is that we strip out source file names. After you run redex there should be a /tmp/filename_mappings.txt to do the back-mapping, similar to proguard. If you're using third-party crash reporting tools that don't understand that back-map, though, you can always turn off the source stripping. We describe how to do that here: https://github.com/facebook/redex/blob/master/docs/Config.md https://github.com/facebook/redex/blob/master/docs/Config.md.