Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-1534

Cache BeanFactory lookup for EvaluationContextExtension.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2 M4 (Moore), 2.1.8 (Lovelace SR8)
    • Component/s: Core
    • Labels:
      None

      Description

      The ExtensionAwareEvaluationContextProvider uses a Supplier to provide EvaluationContextExtension when creating the ExtensionAwarePropertyAccessor on obtaining the EvaluationContext via #getEvaluationContext(Object).
      This triggers a BeanFactory lookup for availbale EvaluationContextExtension each time an EvaluationContext is requested.

      Looking at DATAMONGO-2267 about 11% of the total time taken is spent looking up extensions.

      o.s.d.spel.ExtensionAwareEvaluationContextProvider.getEvaluationContext(Object) 15%
      o.s.d.spel.ExtensionAwareEvaluationContextProvider$$Lambda$476.get() 11%
      o.s.b.f.support.DefaultListableBeanFactory.getBeanNamesForType(Class, boolean, boolean) 10%
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cstrobl Christoph Strobl
              Reporter:
              cstrobl Christoph Strobl
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: