[ 
https://issues.apache.org/jira/browse/STORM-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208332#comment-15208332
 ] 

ASF GitHub Bot commented on STORM-1650:
---------------------------------------

GitHub user hustfxj opened a pull request:

    https://github.com/apache/storm/pull/1250

    [STORM-1650] improve performance by XORShiftRandom

    XORShiftRandom have much better performance than Random, So I use 
XORShiftRandom replace Random at some places

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hustfxj/storm rand

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/1250.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1250
    
----
commit 56f27e5d58d7abd1bdd9aff95dfb862540b166ef
Author: xiaojian.fxj <[email protected]>
Date:   2016-03-16T06:02:10Z

    Merge branch 'master' of github.com:apache/storm

commit d63167cc4a13289ef46b5fa1650621c57b191d3b
Author: xiaojian.fxj <[email protected]>
Date:   2016-03-17T01:29:54Z

    Merge branch 'master' of github.com:apache/storm

commit 2e2ffb29df039e9339e7b2b44352c744efb5caf0
Author: xiaojian.fxj <[email protected]>
Date:   2016-03-18T13:16:44Z

    Merge branch 'master' of github.com:apache/storm

commit 28867372a4fc96d744ccd00a27d9e38dab2bd49e
Author: xiaojian.fxj <[email protected]>
Date:   2016-03-23T03:10:08Z

    Merge branch 'master' of github.com:apache/storm

commit b3c4d810be30a98b6c874abe535dd82bc2d4e13c
Author: xiaojian.fxj <[email protected]>
Date:   2016-03-23T12:22:34Z

    improve performance by XORShiftRandom

----


> 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)

Reply via email to