Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-21766

getUniqueId efficiency could be improved in the common case.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.2
    • Component/s: Dali
    • Labels:
      None

      Description

      Calls to getUniqueId/getUniqueIds can be given a foreign Dali reference.
      However, the common case is where no foreignnode is supplied and the 'local' environment uid allocator is used.

      However, in both cases, it lock a mutex and loops through a list of allocators (to find one that matches the supplied foreignnode).

      It should have an allocator for the common case and avoid looking in the array of allocators for foreignnodes.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: