You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "peachisai (via GitHub)" <gi...@apache.org> on 2023/08/20 14:27:51 UTC

[GitHub] [skywalking] peachisai commented on issue #11239: optimize the method Tags#ofKey using the computeIfAbsent function to retrieve the present key in JDK 8

peachisai commented on issue #11239:
URL: https://github.com/apache/skywalking/issues/11239#issuecomment-1685299064

   > But when I am looking at JDK 11, it seems already changed.
   > 
   > <img alt="image" width="824" src="https://user-images.githubusercontent.com/5441976/261855549-8d081b28-adb9-4736-97ed-fb5e770507f6.png">
   > Compared to this change, actually, if you move `Tags.ofKey` as a static field in the plugin, it should be much faster.
   > 
   > I don't think this change would help a lot AFAIK.
   
   yes, if you use jdk version >= 9, it has fix it, but java agent is available for jdk 8-17,of course using static
   field is the best way.


-- 
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-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org