cuba-platform / cuba-sdk

Software development kit for CUBA Platform
Apache License 2.0
4 stars 3 forks source link

Optimize ComponentManagerImpl#searchAdditionalDependencies function #76

Open artemglinov opened 3 years ago

artemglinov commented 3 years ago

Function ComponentManagerImpl#searchAdditionalDependencies finds additional dependencies of an artifact and put them into a list. Consider a possibility of optimizing the algorithm through returning a set (with appropriate overriding of hashCode and equals functions of MvnArtifact) if this makes sence from a performance perspective. Besides, study the replacement of model.dependencyManagement.dependencies.stream() with parallelStream() call.