Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-2099

Cache TermIndexImpl instead of using anonymous class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.1.0
    • server
    • None

    Description

      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.

      public interface TermIndex extends Comparable<TermIndex> {
        TermIndex[] EMPTY_ARRAY = {};
      
      

      Attachments

        1. 1099_review.patch
          2 kB
          Tsz-wo Sze
        2. Screenshot 2024-05-22 at 2.08.39 PM.png
          205 kB
          Wei-Chiu Chuang

        Issue Links

          Activity

            People

              Symious Janus Chow
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m