Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14819

SOLR has linear log operations that could trivially be linear

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 8.7
    • None
    • None

    Description

      The SOLR code has a few linear log operations that could be linear.  That is, operations of

       

      ```

      for(key in hashmap) doThing(hashmap.get(key));

       

      ```

       

      vs just `for(value in hashmap) doThing(value)`

       

      I have a PR incoming on GitHub to fix a couple of these issue as found by Infer on Muse.

          

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tommd Thomas DuBuisson
              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