You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Dick Cavender (Jira)" <ji...@apache.org> on 2019/09/26 18:04:09 UTC

[jira] [Closed] (GEODE-6785) StoppableCountDownLatch reads a system property every time the constructor is called

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

Dick Cavender closed GEODE-6785.
--------------------------------

> 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
>            Assignee: Mario Ivanac
>            Priority: Major
>              Labels: performance, pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)