myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <>
Subject [jira] [Created] (MYFACES-3654) implement small threadsafe Random algorithm
Date Mon, 19 Nov 2012 16:02:58 GMT
Mark Struberg created MYFACES-3654:

             Summary: implement small threadsafe Random algorithm
                 Key: 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:

View raw message