Description
We did some profiling of the Felix resolver in our application and 16% were spent in ArrayList#indexOf called by {{ArrayList#contains. It seems that ResolverImpl uses java.util.ArrayList for data structures on which it only calls #add and #contains with the latter being O. A java.util.HashSet is the appropriate data structure for such this use case.
Attachments
Attachments
Issue Links
- duplicates
-
FELIX-4656 Improve memory usage and speed of the resolver
- Closed