Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

Low-hanging fruits to improve memory footprint in the native image builder

  • avoid new string creation in CEntryPointData, potentially empty string => in the range of thousands of empty strings saved, all using the same pointer now (via standard string interning.
  • avoid duplicate but empty arrays => instead of allocating lots of T[0], have them all point to the same singleton object. Saving thousands of entries even in a helloworld; take care not to affect cases that use reference equality.
  • clean CodeBreakdownProvider after usage => clean more of the provider earlier; larger save, but only affecting a few late steps.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 1, 2025
@graalvmbot graalvmbot closed this May 1, 2025
@graalvmbot graalvmbot deleted the chw/GR-64061/footprint branch May 1, 2025 18:22
@graalvmbot graalvmbot merged commit 61327a4 into master May 1, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants