mbien commented on code in PR #9775:
URL: https://github.com/apache/netbeans/pull/9775#discussion_r4440314499
##########
platform/core.startup/src/org/netbeans/core/startup/layers/BinaryFS.java:
##########
@@ -744,10 +744,15 @@ private MethodAndParams methodValue(String method,
BFSBase foProvider, String at
// Cf. XMLMapAttr.Attr.methodValue:
Class<?> cls = findClass(method.substring(0, i));
String methodName = method.substring(i + 1);
+ // optimized order based on encountered frequency (startup and
some tree interaction)
Class<?>[][] paramArray = {
- {FileObject.class, String.class}, {String.class,
FileObject.class},
- {FileObject.class}, {String.class}, {},
- {Map.class, String.class}, {Map.class},
+ {Map.class}, // 696 ← hot case, no
conflicts
Review Comment:
i think the conflicts in method resolution are accounted for. This isn't the
fastest order of iteration, it is a compromise.
But I can take another look if there are edge cases remaining.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists