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

Tsz-wo Sze resolved RATIS-2099.
-------------------------------
    Fix Version/s: 3.1.0
       Resolution: Fixed

The pull request is now merged.  Thanks, [~Symious]!

Thanks also [~weichiu] for filing this JIRA!

> Remove TermIndex.EMPTY_ARRAY
> ----------------------------
>
>                 Key: RATIS-2099
>                 URL: https://issues.apache.org/jira/browse/RATIS-2099
>             Project: Ratis
>          Issue Type: Improvement
>          Components: util
>            Reporter: Wei-Chiu Chuang
>            Assignee: Janus Chow
>            Priority: Trivial
>             Fix For: 3.1.0
>
>         Attachments: 1099_review.patch, Screenshot 2024-05-22 at 2.08.39 
> PM.png
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> VisualVM profiler shows a top heap consumer is "TermIndex$1"
> While it doesn't say what it is exactly, it looks like EMPTY_ARRAY isn't used 
> and can be removed.
> {code}
> public interface TermIndex extends Comparable<TermIndex> {
>   TermIndex[] EMPTY_ARRAY = {};
> {code}



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

Reply via email to