Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4779

Cache reflection info for calls in RequiredDataAdvice

    XMLWordPrintable

Details

    Description

      Profiling of consecutive calls of the saveConcept method shows that much time is spent in 2 calls in RequiredDataAdvice:
      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/aop/RequiredDataAdvice.java#L266
      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/aop/RequiredDataAdvice.java#L272

      Inspecting the Reflect class shows that we misused a library for reflection, which has built-in caching.

      Gliffy Diagrams

        Attachments

          Activity

            People

              raff Rafal Korytkowski
              raff Rafal Korytkowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: