Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8313807

Improve the bias correction algorithm of ThreadLocalRandom and RandomSupport

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      The current bias correction algorithm involves a remainder operation which is really expensive. We can use another algorithm mentioned by Lemire in https://lemire.me/blog/2016/06/30/fast-random-shuffling/ to avoid having to do division in the vast majority of the cases.

            Unassigned Unassigned
            qamai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: