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

SOLR has linear log operations that could trivially be linear

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.7
    • Component/s: None
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                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