You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Goldstein Lyor (JIRA)" <ji...@apache.org> on 2017/04/12 16:46:41 UTC

[jira] [Updated] (SSHD-739) A call to resolvePropertyValue can be very inefficient

     [ https://issues.apache.org/jira/browse/SSHD-739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Goldstein Lyor updated SSHD-739:
--------------------------------
    Issue Type: Improvement  (was: Bug)

> A call to resolvePropertyValue can be very inefficient
> ------------------------------------------------------
>
>                 Key: SSHD-739
>                 URL: https://issues.apache.org/jira/browse/SSHD-739
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)