Skip to content

Cache ADR #2499

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Cache ADR #2499

wants to merge 1 commit into from

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jun 19, 2025

If this is possible, it will be huge. One problem: these objects are not needed after collection is done, so evicting from session would be good, instead to keep it in session until session is done.

The idea: same artifact from same repo == same POM == same ArtifactDescriptorResult.

The original story and surrounding is this https://issues.apache.org/jira/browse/MRESOLVER-589

Tightly related: https://github.com/apache/maven-resolver/blob/master/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/DataPool.java#L177-L180 as turning both TRUE saves tremendous memory, but also slows Maven down as explained in https://issues.apache.org/jira/browse/MRESOLVER-587

If this is possible, it will be huge.
@cstamas cstamas requested a review from gnodet June 19, 2025 19:27
@cstamas cstamas self-assigned this Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant