You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2019/05/12 07:17:00 UTC

[jira] [Resolved] (ISIS-2117) Don't use shared instances of 'Random'

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

Andi Huber resolved ISIS-2117.
------------------------------
       Resolution: Fixed
         Assignee: Andi Huber
    Fix Version/s: 2.0.0

Optimization applied to '2112_Spring' branch, which is designated to be merged into the final 2.0.0 release.

> Don't use shared instances of 'Random'
> --------------------------------------
>
>                 Key: ISIS-2117
>                 URL: https://issues.apache.org/jira/browse/ISIS-2117
>             Project: Isis
>          Issue Type: Improvement
>            Reporter: bd2019us
>            Assignee: Andi Huber
>            Priority: Trivial
>             Fix For: 2.0.0
>
>         Attachments: ISIS-2117.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Replace Math.random with Random.nextDouble. There is a performance overhead cost when using Math.random over Random.nextDouble. Even moreso, the Random class can allow for easier random manipulation in the future if needed.



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