You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "John Fang (JIRA)" <ji...@apache.org> on 2016/03/23 13:25:25 UTC

[jira] [Created] (STORM-1650) improve performance by XORShiftRandom

John Fang created STORM-1650:
--------------------------------

             Summary: improve performance by XORShiftRandom
                 Key: STORM-1650
                 URL: https://issues.apache.org/jira/browse/STORM-1650
             Project: Apache Storm
          Issue Type: Improvement
            Reporter: John Fang
            Assignee: John Fang


Implement a random number generator based on the XORShift algorithm discovered by George Marsaglia. This RNG is observed 4.5 times faster than {@link Random} in benchmark, with the cost that abandon thread-safety. So it's recommended to create a new {@link XORShiftRandom} for each thread.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)