Skip to content

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