Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25832 Performance improvements for StochasticLoadBalancer
  3. HBASE-25838

Use double instead of Double in StochasticLoadBalancer

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

        // to save and report costs to JMX
        private Double curOverallCost = 0d;
        private Double[] tempFunctionCosts;
        private Double[] curFunctionCosts;
      

      It seems we never do null check on these field or the elements, so I do not see any reason we should use Double here. Just use double instead.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: