Menu

#54 jkad - Improve overall performance , key classes very slow

open
nobody
None
5
2010-08-13
2010-08-13
Steve J
No

I used the java native profiler to see some basic performance evaluation ( -verbose:gc -agentlib:hprof=cpu=times and -verbose:gc -agentlib:hprof=cpu=samples ) on the jkad component. I saw that it spent lot of time in the equals and hashcode methods of classes like Int128, KadContact, and the other key classes. I also saw the change made on Jun 26 " Optimized hashCode calculation - hashCode is calculated only once, at first call of hashCode()" on the class int128 and you guy should push this way for other elements.

For example , you can use the same mechanism to limit the number of operations of Convert.byteArrayToBitSet() and Convert,bitSetToByteArray() at every call in the same Int128 class and in the other classes.
hope it helps.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB