Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-377

Improve LazyDataObject augmentation cache locking

    Details

      Description

      LazyDataObject's full augmentation resolution via augmentations() performs unnecessary lock operation to guard creation of further LDOs, which are quite fast to build in order to not compute the same thing twice even under contended initialization. Due to the nature of LDO use, contention on initialization quite unlikely and computation of augmentations is not very expensive. We can therefore relax the synchronization into a compare-and-swap resync, which is much lighter-weight operation than locking.

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              rovarga Robert Varga
              Reporter:
              rovarga Robert Varga
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: