[
https://issues.apache.org/jira/browse/HDDS-17957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153018#comment-18153018
]
Tsz-wo Sze commented on HDDS-17957:
-----------------------------------
Although modern versions of Java include an internal optimization, it still
unnecessarily create intermediate objects.
!screenshot-1.png|width=600!
> Implement NetUtils.locationToDepth(..) without String.split(..)
> ---------------------------------------------------------------
>
> Key: HDDS-17957
> URL: https://issues.apache.org/jira/browse/HDDS-17957
> Project: Apache Ozone
> Issue Type: Improvement
> Components: common
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Attachments: screenshot-1.png
>
>
> String.split(..) is expensive and unnecessarily create an array just for the
> length.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]