merged
authordesharna
Thu, 07 Mar 2024 23:58:01 +0100
changeset 79807 afb26a1dea71
parent 79806 ba8fb71587ae (current diff)
parent 79805 45198ea3f0b3 (diff)
child 79808 5dd2a771811e
merged
--- a/src/Pure/Build/build_schedule.scala	Thu Feb 29 11:18:26 2024 +0100
+++ b/src/Pure/Build/build_schedule.scala	Thu Mar 07 23:58:01 2024 +0100
@@ -601,8 +601,10 @@
   case class Optimizer(schedulers: List[Scheduler]) extends Scheduler {
     require(schedulers.nonEmpty)
 
-    def schedule(state: Build_Process.State): Schedule =
-      schedulers.map(_.schedule(state)).minBy(_.duration.ms)
+    def schedule(state: Build_Process.State): Schedule = {
+      def main(scheduler: Scheduler): Schedule = scheduler.schedule(state)
+      Par_List.map(main, schedulers).minBy(_.duration.ms)
+    }
   }