You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2019/05/11 10:31:00 UTC

[jira] [Work stopped] (CAMEL-13499) Use Random.nextDouble instead of Math.random for better performance

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

Work on CAMEL-13499 stopped by Andrea Cosentino.
------------------------------------------------
> Use Random.nextDouble instead of Math.random for better performance
> -------------------------------------------------------------------
>
>                 Key: CAMEL-13499
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13499
>             Project: Camel
>          Issue Type: Improvement
>            Reporter: bd2019us
>            Assignee: Andrea Cosentino
>            Priority: Trivial
>             Fix For: 3.0.0, 3.0.0-M3
>
>         Attachments: CAMEL-13499.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> There is a slight performance cost associated with Math.random that does not exist in Random.nextDouble. Switching to Random.nextDouble offers the same functionality as Math.random, removes the performance overhead, and allows for more control over the randomness if such a thing is needed in the future



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