Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

SVMImageLayerLoader uses streams in places where simple indexed for-loops would be easy enough to use. Excessive use of Stream API can increase GC pressure. When loading large enough layer snapshots this will start showing. This change also reduces the size of SVMImageLayerLoader and improves readability.

The PR doesn't contain and changes to the logic of layer loading.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 11, 2025
@graalvmbot graalvmbot force-pushed the cs/GR-65695-replace-stream-with-indexed-loops branch from 1f0ad4c to b8c0a68 Compare June 11, 2025 16:13
@graalvmbot graalvmbot merged commit 8097e82 into master Jun 12, 2025
13 checks passed
@graalvmbot graalvmbot deleted the cs/GR-65695-replace-stream-with-indexed-loops branch June 12, 2025 02:33
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