Refactor applybeam stokes i
Small refactor fix. Applied to the test proposed by @offringa I see a minor speed up of 50 seconds on the whole run:
BEFORE:
2024-Aug-13 12:05:17.067681 Total DP3 time 1329.69 real 19342.4 user 53.82 system
2024-Aug-13 12:05:17.067689 0.2% ( 2183 ms) MSReader
2024-Aug-13 12:05:17.067723 98.8% ( 1313 s) DDECal solve.
2024-Aug-13 12:05:17.067727 49.5% ( 650 s) of it spent in predict
2024-Aug-13 12:05:17.067731 49.2% ( 646 s) of it spent in estimating gains and computing residuals
2024-Aug-13 12:05:17.067735 0.0% ( 4 ms) of it spent in writing gain solutions to disk
2024-Aug-13 12:05:17.067739 Substeps taken:
2024-Aug-13 12:05:17.067743
AFTER:
2024-Aug-13 14:25:55.047551 Total DP3 time 1278.19 real 18035.1 user 50.06 system
2024-Aug-13 14:25:55.047558 0.1% ( 1851 ms) MSReader
2024-Aug-13 14:25:55.047579 98.7% ( 1262 s) DDECal solve.
2024-Aug-13 14:25:55.047584 47.8% ( 602 s) of it spent in predict
2024-Aug-13 14:25:55.047588 51.0% ( 643 s) of it spent in estimating gains and computing residuals
2024-Aug-13 14:25:55.047591 0.0% ( 4 ms) of it spent in writing gain solutions to disk
2024-Aug-13 14:25:55.047595 Substeps taken:
Edited by Mattia Mancini