PrefectHQ
prefect
BlogDocsChangelog

Fix performance issues with sync tasks on Windows

#19595
Comparing
fix-19581
(
f3d2f4e
) with
main
(
26aa8c6
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

Passed

bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s
bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
459.5 µs460 µs

Ignored

bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-4%
5.9 ms6.1 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-47%
5.4 ms10.2 ms
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
107.4 ms107.7 ms
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
×4.7
161.7 ms34.6 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
+4%
173.1 ms166.1 ms

Commits

Click on a commit to change the comparison range
Base
main
26aa8c6
-0.01%
Fix performance issues with sync tasks on Windows Removes use of `run_coro_as_sync` in the sync task engine because the underlying locking is a performance bottleneck on Windows.
f3d2f4e
4 hours ago
by desertaxle
© 2025 CodSpeed Technology
Home Terms Privacy Docs