-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-performanceIssue relates to performance or code sizeIssue relates to performance or code sizevm-aot-code-sizeRelated to improvements in AOT code sizeRelated to improvements in AOT code sizevm-aot-memory-footprintRelated to improvements of VM memory footprint for AOT deploymentsRelated to improvements of VM memory footprint for AOT deployments
Description
Usually we recommend using obfuscation as a way to reduce code size because it shrinks identifiers (method names and library uri-s). The size drop is rather noticeable on large applications.
We could consider taking this one step further - most of the symbol information is completely unnecessary when running in AOT mode with dwarf-stack traces, so we could consider replacing completely dropping library uri-s and replacing string based symbol names with global numbering (represented as Smi-s).
This might allow to remove significant number of strings from AOT snapshot and thus shrink it.
/cc @mkustermann
dnfield, naturallymitchell and pablojimpas
Metadata
Metadata
Assignees
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-performanceIssue relates to performance or code sizeIssue relates to performance or code sizevm-aot-code-sizeRelated to improvements in AOT code sizeRelated to improvements in AOT code sizevm-aot-memory-footprintRelated to improvements of VM memory footprint for AOT deploymentsRelated to improvements of VM memory footprint for AOT deployments