overhead when saving scans
There is a 90 ms overhead (minimum) when scans are saved (not counting metadata).
This can be problematic for sct()
with a small acquisition time or if scans have to be
launched in a row as fast as possible.
From the demo session:
DEMO_SESSION [34]: with bench():
...: s=sct(0.1,diode1, run=False, save=True); s._enable_scanmeta=False; s.run()
Tue Apr 05 00:22:12 2022: Scan(number=11, name=ct, path=/tmp/scans/inhouse/id002204/id00/sample/sample_00
01/sample_0001.h5)
diode1 = 42.5822 ( 425.822 /s) simulation_diode_sampling_controller
Took 0:00:00.152946[s]
Execution time: 304ms 518μs
DEMO_SESSION [35]: with bench():
...: s=sct(0.1,diode1, run=False, save=False); s._enable_scanmeta=False; s.run()
Tue Apr 05 00:22:20 2022: Scan(name=ct, path='not saved')
diode1 = 59.2967 ( 592.967 /s) simulation_diode_sampling_controller
Took 0:00:00.125891[s]
Execution time: 213ms 7μs
Edited by Matias Guijarro