Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
(Java) V4 4.0.0-beta-01
-
None
Description
when running with debugger attached, the below 100 times of .getDateTimeSent() takes 4s ~ 4.5s. (though without debugger attached, it can be a bit faster)
==================
for (Message m : mc)
==================
one of the causes:
AbstractStructuredInvocationHandler.invoke(..) method takes time to check (isSelfMethod()) first, then check (method.getName().startsWith("get")), so get- method on the proxy object is slowed down beause isSelfMethod() loops through all self methods by reflection.
so the fix is to check get- set- first before checking isSelfMethod().