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

Darrel Schneider updated GEODE-6785:
------------------------------------
    Labels: performance  (was: )

> StoppableCountDownLatch reads a system property every time the constructor is 
> called
> ------------------------------------------------------------------------------------
>
>                 Key: GEODE-6785
>                 URL: https://issues.apache.org/jira/browse/GEODE-6785
>             Project: Geode
>          Issue Type: Improvement
>          Components: core
>            Reporter: Darrel Schneider
>            Priority: Major
>              Labels: performance
>
> The public constructor on StoppableCountDownLatch reads a system property 
> each time.
> This is a synchronized operation and every time we wait for a response from a 
> peer we create one (In ReplyProcessor21). We don't expect this system 
> property to change on a running jvm so we could read it once and cache the 
> result to improve performance.
> The expression that reads the system property is: 
> MILLISECONDS.toNanos(Long.getLong(RETRY_TIME_MILLIS_PROPERTY, 
> RETRY_TIME_MILLIS_DEFAULT))



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to