Skip to content

Commit 5a642d1

Browse files
author
MikeStall
committed
perf: improve TaskHelpers.Iterate. There's a huge perf penalty for switch threads on completed tasks.
1 parent 8e4304c commit 5a642d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/TaskHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ private static void RunNextCallback(object state)
404404
RunNext(engine);
405405
break;
406406
}
407-
});
407+
}, TaskContinuationOptions.ExecuteSynchronously);
408408
}
409409
else
410410
{

0 commit comments

Comments
 (0)