Skip to content

Support AOT splitting #41974

Closed
Closed
@mehmetf

Description

@mehmetf

One of our biggest internal clients would like to split their AOT code per country. They plan to release to over 25 countries in the next year or so and some of them (such as NBU) are highly size sensitive. Their current calculations indicate that all countries put together will definitely exceed the minimum size requirements for the strictest countries. Their timeline for release is August/September 2020.

To avoid blocking that release, they would like to be able to ship smaller .so modules on Android and have Play Store deliver a combination of these modules to the user depending on their country. As a first step, these will be install-time only modules (i.e. no dynamically downloaded AOT code).

The request from VM team is two folds:

  • Ability to do whole-world compilation but then split the final AOT into multiple independently loadable bundles.
    • It would be important to discuss how we expect apps to mark the boundaries of their bundles.
  • Ability to load these bundles into the same isolate seamlessly. Not having to restart the isolate would be ideal. However, since we have all the bundles ahead of time, it is not a requirement.

Metadata

Metadata

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.customer-google3vm-aot-code-sizeRelated to improvements in AOT code size

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions