Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-739

A call to resolvePropertyValue can be very inefficient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.6.0
    • None

    Description

      Each time a property is retrieved, all system properties names are iterated.
      This is because PropertyResolverUtil#resolvePropertyValue is calling GenericUtils.isEmpty(props) on a SyspropsMapWrapper.

      This can be solved by using isNull(props) instead of isEmpty(props) as there's no need to check if the map is empty.
      In the same call, there's also a call to System.getProperty which seems to be redundant with the SyspropsMapWrapper. I think it should be removed.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: