-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable lazy loading of AOTd assemblies (#6940)
Fixes: #6935 Context: dotnet/runtime#67024 Add support for enabling lazy loading of AOTd assemblies and their associated shared libraries, when targeting .NET6+. The feature is enabled by default when AOT is enabled for `Release` builds and can be disabled by setting the new `$(AndroidAotEnableLazyLoad)` MSBuild property to `false`. Performance gains are obvious, but their scale depends on where we look. Results of running a Hello World MAUI app on Pixel 6 Pro, with: See PR for full timing details. With: * `$(RuntimeIdentifier)`=android-arm64 * `$(AndroidEnablePreloadAssemblies)`=False * `$(AndroidUseAssemblyStore)`=True, `$(AndroidEnableAssemblyCompression)`=True | Scenario | Before | After | Δ | | ------------------------------------- | --------: | --------: | --------: | | `ActivityTaskManager: Displayed` time | 367.800 | 368.200 | +0.11% ✗ | | `JNIEnv.Initialize()` time | 6.221 | 5.367 | -13.73% ✓ | | Total native init time | 39.047 | 20.395 | -47.77% ✓ | With: * `$(RuntimeIdentifier)`=android-arm * `$(AndroidEnablePreloadAssemblies)`=True * `$(AndroidUseAssemblyStore)`=True, `$(AndroidEnableAssemblyCompression)`=True | Scenario | Before | After | Δ | | ------------------------------------- | --------: | --------: | --------: | | `ActivityTaskManager: Displayed` time | 490.600 | 475.000 | -3.18% ✓ | | `JNIEnv.Initialize()` time | 8.602 | 7.787 | -9.48% ✓ | | Total native init time | 47.726 | 27.156 | -43.10% ✓ |
- Loading branch information
Showing
10 changed files
with
54 additions
and
21 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
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
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
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
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