Open kitsook opened 2 years ago
When using Collections.shuffle to randomize the boxes, increasing the parallelism will actually hurt the performance. Investigate why.
reference: https://github.com/kitsook/PrisonersProblem/commit/cd56366d77971f34e307e8371cbbe2c0ed60f7d2
https://www.clarenceho.net/2022/08/java-collectionsshuffle-poor.html
When using Collections.shuffle to randomize the boxes, increasing the parallelism will actually hurt the performance. Investigate why.
reference: https://github.com/kitsook/PrisonersProblem/commit/cd56366d77971f34e307e8371cbbe2c0ed60f7d2