[jira] [Created] (IGNITE-13221) Repeated calls to Class#getCanonicalName and Class#getSimpleName is a bottleneck

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-13221) Repeated calls to Class#getCanonicalName and Class#getSimpleName is a bottleneck

Anton Vinogradov (Jira)
Manuel Núñez created IGNITE-13221:
-------------------------------------

             Summary: Repeated calls to Class#getCanonicalName and Class#getSimpleName is a bottleneck
                 Key: IGNITE-13221
                 URL: https://issues.apache.org/jira/browse/IGNITE-13221
             Project: Ignite
          Issue Type: Improvement
          Components: binary, networking
            Reporter: Manuel Núñez


OpenJDK version <  11 does not cache class name neither simple class name and this is a bottleneck, mainly in org.apache.ignite.internal.binary.BinaryObjectExImpl.

Solution could be to cache all calls to Class#getSimpleName within IgniteUtils for example.
 
Since OpenJDK 11 and later, name and simple name is cached.

For details, see ticket https://bugs.openjdk.java.net/browse/JDK-8187123



--
This message was sent by Atlassian Jira
(v8.3.4#803005)