[ 
https://issues.apache.org/jira/browse/RATIS-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze reassigned RATIS-1141:
---------------------------------

    Assignee: Tsz-wo Sze

[~weichiu], thanks a lot for filing this JIRA.

> Class.getSimpleName() has a 4% overhead in the SegmentedRaftLogWriter thread
> ----------------------------------------------------------------------------
>
>                 Key: RATIS-1141
>                 URL: https://issues.apache.org/jira/browse/RATIS-1141
>             Project: Ratis
>          Issue Type: Improvement
>    Affects Versions: 1.0.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Tsz-wo Sze
>            Priority: Major
>         Attachments: Screen Shot 2020-11-09 at 3.48.33 PM.png
>
>
> See the attachment. I'm running a write benchmark for Ozone, and the 
> DataNode's SegmentedRaftLogWriter spent 4% time on Class.getSimpleName(). 
> While 4% isn't a lot, Ratis performance is the major bottleneck on the Ozone 
> DN write path. It would be great to remove this overhead.
> Also see 
> https://stackoverflow.com/questions/17369304/why-is-class-getsimplename-not-cached
>  OpenJDK11 caches this call, but not for JDK8 where most of the production 
> workloads are running.



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

Reply via email to