cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra] bd2019us opened a new pull request #320: [CASSANDRA-15125] Replace Math.random with Replace.nextDouble to remo…
Date Sat, 11 May 2019 02:34:36 GMT
bd2019us opened a new pull request #320: [CASSANDRA-15125] Replace Math.random with Replace.nextDouble
to remo…
URL: https://github.com/apache/cassandra/pull/320
 
 
   …ve performance overhead
   
   [CASSANDRA-15125](https://issues.apache.org/jira/browse/CASSANDRA-15125) Math.random has
a slight performance overhead associated with itself that does not exist in Random.nextDouble.
These instances of Math.random, such as those sampled below, can be replaced with random.nextDouble.
Furthermore, the randomness can be configured via the Random class if such a feature 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message