Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1245

Clean up cache GetNodesInfoMap

    XMLWordPrintableJSON

Details

    Description

      Clean up of the GetNodesInfoMap and GetNodesInfoMapCopy calls in the scheduler cache in the k8shim.

      We should only have behavioural option and that is the locked one. The name can be chosen as either one. It must always return the clone of the map, not sure about the cloning the content at that point.

      Not cloning each of the nodes at that point could give us a performance gain. All callers either filter or convert from a map to a slice. We can delay cloning the nodes itself to that point. This could save cloning a large number of objects as we never return them.

      Attachments

        Issue Links

          Activity

            People

              ccondit Craig Condit
              wilfreds Wilfred Spiegelenburg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: