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

RatisMetricRegistryImpl.getMetricName could be cached to reduce garbage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.5.0
    • metrics
    • None

    Description

      In allocation profiling with AsyncProfiler, I can see that RatisMetricRegistryImpl.getMetricName produces unnecessary garbage. It's better to cache the results. 

      Attachments

        Issue Links

          Activity

            People

              lhotari Lari Hotari
              lhotari Lari Hotari
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m