synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [synapse] isudana commented on issue #11: Performance save - Replace instances of Math.Random with Random.nextD…
Date Tue, 19 Nov 2019 00:13:11 GMT
isudana commented on issue #11: Performance save - Replace instances of Math.Random with Random.nextD…
URL: https://github.com/apache/synapse/pull/11#issuecomment-555270122
 
 
   There is no conclusive fact to claim that using Random.nextDouble() gives a significant
performance gain over Math.Random(). 
   I found the following resources, but those are not good enough to make a drastic change
in the codebase. 
   https://stackoverflow.com/questions/738629/math-random-versus-random-nextintint
   https://community.oracle.com/message/6596485?#6594485
   
   Do you have any other resources or proof to prove that we could gain a performance improvement
by doing this change? 
   
   

----------------------------------------------------------------
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: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message