-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the final InterDexReshufflePass to apply dex removing
Summary: Reshuffle algorithm just moves classes between dexes, and won't reduce the number of dexes. However, based on the total number of refs, it is possible to fully eliminate a dex and moving all its classes to other dexes. Current aporach is : 1) pick up the dex with the smallest number of refs; 2) move all its classes to other dexes; 3) run reshuffle algithm without moving any class back to that picked dex; 4) fully remove that dex. This flow is only run in the last InterDexReshufflePass. Reviewed By: NTillmann Differential Revision: D47249587 fbshipit-source-id: 33bc5a91f15a56cd3e177f510e0fc547e6e64788
- Loading branch information
1 parent
081b247
commit f6f7dbd
Showing
2 changed files
with
243 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters