Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASSANDRA-15125 Replace Math.random with Replace.nextDouble to remo… #320

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

bd2019us
Copy link

…ve performance overhead

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.

blambov pushed a commit to blambov/cassandra that referenced this pull request Feb 15, 2022
jacek-lewandowski pushed a commit to jacek-lewandowski/cassandra that referenced this pull request Mar 7, 2022
@smiklosovic smiklosovic changed the title [CASSANDRA-15125] Replace Math.random with Replace.nextDouble to remo… CASSANDRA-15125 Replace Math.random with Replace.nextDouble to remo… Mar 16, 2022
blambov pushed a commit to blambov/cassandra that referenced this pull request Mar 21, 2022
blambov pushed a commit to blambov/cassandra that referenced this pull request Jun 13, 2022
blambov pushed a commit to blambov/cassandra that referenced this pull request Nov 24, 2022
…e#320)

(cherry picked from commit c390f5f)
(cherry picked from commit ff24c10)
(cherry picked from commit bf50617)
adelapena pushed a commit to adelapena/cassandra that referenced this pull request Sep 26, 2023
…e#320)

(cherry picked from commit c390f5f)
(cherry picked from commit ff24c10)
(cherry picked from commit bf50617)
(cherry picked from commit ea19215)
(cherry picked from commit 02a92fd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant