Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0-beta
    • JSR-344
    • None

    Description

      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.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: