Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Slight performance overhead can be saved by using Random.nextDouble i… #457
…nstead of Math.random for any instance of Math.random.
Though this is not the only instance of Math.random in the codebase, any instance of it can be replaced by Random.nextDouble. Though not performance critical, this can reduce performance overhead when done across all instances of Math.random.
I have a list of every applicable Math.random -> Random.nextDouble instance and will share such list if it is okay to move forward with such modifications.
Motivation and Context
Though not performance critical, this can reduce performance overhead when done across all instances of Math.random.
Types of changes
@@ Coverage Diff @@ ## trunk #457 +/- ## ============================================ + Coverage 61.19% 61.19% +<.01% - Complexity 11462 11463 +1 ============================================ Files 1220 1220 Lines 77974 77975 +1 Branches 7527 7527 ============================================ + Hits 47717 47719 +2 + Misses 27556 27555 -1 Partials 2701 2701