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

[jira] [Commented] (OPENNLP-1259) Replace Math.Random with Random.nextDouble

    [ https://issues.apache.org/jira/browse/OPENNLP-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16837693#comment-16837693 ] 

ASF GitHub Bot commented on OPENNLP-1259:
-----------------------------------------

bd2019us commented on pull request #30: OPENNLP-1259 - Replace instances of Math.random with Random.nextDouble
URL: https://github.com/apache/opennlp-sandbox/pull/30
 
 
   When compared to Random.nextDouble, there is a slight performance overhead associated with Math.random. Switching to Random.nextDouble can reduce this overhead and offers more control over the randomness 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


> Replace Math.Random with Random.nextDouble
> ------------------------------------------
>
>                 Key: OPENNLP-1259
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1259
>             Project: OpenNLP
>          Issue Type: Improvement
>            Reporter: bd2019us
>            Priority: Trivial
>         Attachments: OPENNLP-1259.patch
>
>
> When compared to Random.nextDouble, there is a slight performance overhead associated with Math.random. Switching to Random.nextDouble can reduce this overhead and offers more control over the randomness in the future.



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