Improve the bias correction algorithm of ThreadLocalRandom and RandomSupport

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated: