Skip to content
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

[MRESOLVER-587] Memory usage improvements #537

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Jul 13, 2024

Do not use Object as descriptor key, use dedicated type. And intern the List<Dependency> on artifact descriptors. Also introduce "intern"-ing of ArtifactDescriptor dependencies and managedDependencies that is configurable (speed vs memory).


https://issues.apache.org/jira/browse/MRESOLVER-587

Do not use Artifact instance as keys, and intern the
List<Dependency> on artifact descriptors as well.

---

https://issues.apache.org/jira/browse/MRESOLVER-587
(default: false to both, as before)

Adds two new config properties that controls interning of
ArtifactDescriptor dependencies and managedDependencies.

Interning both radically lower memory consumption but at
same time increases runtime.
Intern only managed deps.

Also simplify a bit.
@cstamas cstamas merged commit e48e42a into apache:master Aug 2, 2024
5 checks passed
@cstamas cstamas deleted the MRESOLVER-587 branch August 2, 2024 12:02
@cstamas cstamas modified the milestones: 1.9.22, 2.0.1 Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant