Skip to content

[GR-65695] Replace streams with indexed for-loops in layer loader. #11387

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 1 commit into from
Jun 12, 2025

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