elo: add comment about rayon and live leaderboard

This commit is contained in:
Simon Gardling 2025-03-04 16:33:42 -05:00
parent f73e781063
commit 7c74f6b5da
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -145,6 +145,9 @@ impl PlayerArena {
.expect("invalid ProgressStyle"),
)
.map(|((i, j), (p1, p2))| (i, j, Self::play_two_inner(p1, p2)))
// TODO! is there some way in rayon to allow `self.process_outcome` to be run on the main thread
// as soon as Self::play_two_inner completes? This would allow maybe a live leaderboard to be displayed
// while players are playing
.collect::<Vec<_>>()
// collect and process the outcomes of all the games
.into_iter()