Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce AOT snapshot size by removing unnecessary constants #48928

Closed
aam opened this issue Apr 29, 2022 · 0 comments
Closed

Reduce AOT snapshot size by removing unnecessary constants #48928

aam opened this issue Apr 29, 2022 · 0 comments
Assignees
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

Comments

@aam
Copy link
Contributor

aam commented Apr 29, 2022

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.

@aam aam added 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 labels Apr 29, 2022
@aam aam self-assigned this Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant