nizhikov commented on code in PR #12266: URL: https://github.com/apache/ignite/pull/12266#discussion_r2273707226
########## modules/binary/api/src/main/java/org/apache/ignite/marshaller/MarshallerExclusions.java: ########## @@ -114,18 +63,12 @@ private MarshallerExclusions() { private static boolean isExcluded0(Class<?> cls) { assert cls != null; - final Class<?>[] inc = INCL_CLASSES; - - // NOTE: don't use foreach for performance reasons. - for (int i = 0; i < inc.length; i++) - if (inc[i].isAssignableFrom(cls)) + for (Class<?> inclCls : INCL_CLASSES) Review Comment: As you can see - `MarshallerExclusions#isExcluded` works with cache which has 512 elements size. I don't have exact number. Let's measure this in separate ticket. I will create one. -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org