mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
bug5899: left a TODO for combining expensive computations for same subject
This commit is contained in:
+1
@@ -131,6 +131,7 @@ public class MarkPassingsJsonSerializer extends AbstractTrackedRaceDataJsonSeria
|
||||
markPassingJson.put(ONE_BASED_PASSING_ORDER, passingOrder);
|
||||
// the following expensive-to-compute metrics will be delivered only to our valued "premium" customers:
|
||||
if (leaderboardValidAndSubjectMaySeePremiumInformation) {
|
||||
// TODO bug5899: check if for Subject a request for the same trackedRace and null live time point is already being computed; if so, wait for it and use it; otherwise register computation for other parallel requests to re-use; synchronization / atomicity!
|
||||
final Pair<RaceColumn, Fleet> raceColumnAndFleet = leaderboard.getRaceColumnAndFleet(trackedRace);
|
||||
if (raceColumnAndFleet != null) {
|
||||
final Double totalPoints = leaderboard.getScoreCorrection().getCorrectedScore(() -> passingOrder,
|
||||
|
||||
Reference in New Issue
Block a user