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

Improve LazyDataObject augmentation cache locking

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: