Closed flomonster closed 1 day ago
The health
endpoint takes time to respond not because of the number of tasks scheduled by tokio but the number of queries sent to postgres (and maybe redis too).
I will make a new PR that reduces the number of calls made by the train-simulation-batch
function.
1) Initial situation
No cache
Project path: 30s Summary: 25s
Hit Cache
Project path: 4s Summary: 1.48s
2) Disable parallelization
No cache
Project path: 113s :turtle: Summary: 4s
Hit Cache
Project path: 5s Summary: 3.8s
3) Create a new runtime
No cache
Project path: ? Summary: ?
Hit Cache
Project path: 6s Summary: 2.63s