Skip to content

Commit

Permalink
Fix slowdown when queue/scoreboard is enabled during an initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Sep 5, 2024
1 parent 80c4e39 commit 6eca9e3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fun CoroutineScope.launchServices(loader: Flow<ContestUpdate>) {
}
val normalScoreboardState = loader
.calculateScoreboard(OptimismLevel.NORMAL)
.buffer(Int.MAX_VALUE)
.shareIn(this, starter)

fun CoroutineScope.launchService(service: Service) = launch {
Expand Down

0 comments on commit 6eca9e3

Please sign in to comment.