Skip to content

[GR-64192] Native Image Builder Memory Footprint Optimizations #11077

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

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

graalvmbot
Copy link
Collaborator

This PR contains a set of minor changes meant to reduce the footprint of Native Image, especially in the analysis phase.

  • Replace Set/Map usages with specialized implementations in AnalysisType and CompilationGraph.
  • in TypeFlow when manipulating collections, use clear() instead of removing elements one by one when possible.
  • Use singleton AlwaysEnabledPredicateFlow instead of creating one instance per method.
  • Introduce a singleton empty EconomicSet object accessible via EconomicSet.emptySet().

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 24, 2025
@graalvmbot graalvmbot closed this Apr 25, 2025
@graalvmbot graalvmbot deleted the d-kozak/GR-64192/ds-footprint-reduce branch April 25, 2025 02:50
@graalvmbot graalvmbot merged commit e03b661 into master Apr 25, 2025
12 of 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