Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7434

Improve AbstractI18nContentSupport#hasProperty performance

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1
    • Fix Version/s: None
    • Component/s: i18n
    • Labels:
      None

      Description

      As described in SUPPORT-9440:

      info.magnolia.cms.i18n.AbstractI18nContentSupport#hasProperty checks the presence of the property by calling getProperty(javax.jcr.Node, java.lang.String) that throws an exception if the property does not exist.

      Exceptions are expensive (especially when having deep stack traces) in term of performance and the method hasProperty is called a lot.

      A new i18n supported 'hasProperty' implementation which consider to performance optimization is expected.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            viet.nguyen Viet Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: