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

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

     [ https://issues.apache.org/jira/browse/CAMEL-13499?focusedWorklogId=240513&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-240513 ]

ASF GitHub Bot logged work on CAMEL-13499:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/May/19 23:45
            Start Date: 10/May/19 23:45
    Worklog Time Spent: 10m 
      Work Description: bd2019us commented on pull request #2908: [CAMEL-13499] Use Random.nextDouble instead of Math.random for better…
URL: https://github.com/apache/camel/pull/2908
 
 
   … performance
   
   [CAMEL-13499](https://issues.apache.org/jira/browse/CAMEL-13499) 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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 240513)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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
>            Priority: Trivial
>          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)