You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2026/08/31 23:59:00 UTC

[jira] [Commented] (HDDS-16334) The maps in XceiverClientShortCircuit should not use String as key

    [ https://issues.apache.org/jira/browse/HDDS-16334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18110113#comment-18110113 ] 

Tsz-wo Sze commented on HDDS-16334:
-----------------------------------

String vs two long(s)
!image-2026-08-31-16-58-15-071.png|width=600!

> The maps in XceiverClientShortCircuit should not use String as key
> ------------------------------------------------------------------
>
>                 Key: HDDS-16334
>                 URL: https://issues.apache.org/jira/browse/HDDS-16334
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Client
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2026-08-31-16-58-15-071.png
>
>
> {code}
>   private final Map<String, FileInputStream> blockStreamCache;
>   private final Map<String, RequestEntry> sentRequests;
> {code}
> The above two maps use String as key by converting long/ByteString.  It is more efficient to use long/ByteString directly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org