Mark Struberg created MYFACES-3654:
--------------------------------------

             Summary: implement small threadsafe Random algorithm
                 Key: MYFACES-3654
                 URL: https://issues.apache.org/jira/browse/MYFACES-3654
             Project: MyFaces Core
          Issue Type: Sub-task
          Components: JSR-344
    Affects Versions: 2.2.0
            Reporter: Mark Struberg
            Assignee: Mark Struberg


java.util.Random always locks and thus creates a bottleneck in heavy threaded 
server scenarios. In Java 7 a new ThreadLocalRandom got introduced which fixes 
that but we cannot use this as we still need to support java5 and 6.

The algorithm used in java.util.Random also is not the best in terms of 
spreading. 

I propose to introduce a small XorShift random generator which has a very good 
spreading and is vastly faster than java.util.Random as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to