You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2026/04/27 13:01:00 UTC

[jira] [Assigned] (CASSANDRA-15125) Replace Math.random with Replace.nextDouble to remove performance overhead

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

Stefan Miklosovic reassigned CASSANDRA-15125:
---------------------------------------------

    Assignee:     (was: Stefan Miklosovic)

> Replace Math.random with Replace.nextDouble to remove performance overhead
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15125
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15125
>             Project: Apache Cassandra
>          Issue Type: Improvement
>            Reporter: bd2019us
>            Priority: Normal
>              Labels: pull-request-available
>         Attachments: CASSANDRA-15125.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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 message was sent by Atlassian Jira
(v8.20.10#820010)

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