Reduce AOT snapshot size by removing unnecessary constants #48928
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
type-performance
Issue relates to performance or code size
vm-aot-memory-footprint
Related to improvements of VM memory footprint for AOT deployments
from #48910 (comment)
Constants in the AOT snapshots are used for canonicalization of the instances, which in AOT will be limited to canonicalization of cross-isolate_group messages. Such messages are only limited to instances of core classes, it is not allowed to send user-defined instancess across isolate group boundary. So constants created for user-defined classes won't be used, can be eliminated from the snapshot.
The text was updated successfully, but these errors were encountered: