Hello

I am writing with regards to method 
"org.eclipse.osgi.internal.resolver.StateHelperImpl.getExportedPackageMap", 
which constructs Map and Set with initial capacity. Is there a particular 
reason for constructing them in that way?

For example,
Map<String, Set<ExportPackageDescription>> result = new HashMap<String, 
Set<ExportPackageDescription>>(11);
or
exports = new HashSet<ExportPackageDescription>(1);

IMHO, in most cases, it causes array resizing, which, I saw, reflects to 
performance analysis.

Best regards
Radoslav Ivanov

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to