Ticket #1207 (closed: fixed)
Speed-up Q1D for SANS2D
Reported by: | Laurent Chapon | Owned by: | Laurent Chapon |
---|---|---|---|
Priority: | major | Milestone: | Iteration 23 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
Had a quick look and most of the cpu time is spent in remap (SpectraDetectorMap).
Change History
comment:2 Changed 10 years ago by Laurent Chapon
(In [4305]) re#1207 Improve speed of gravity correction. The all method was recalculating prefactors all the time and was computing an acos and a sin for each value. Change the call using trigo relations to a single sqrt function.
Test on full SANS2D data improve from 4. s to 2.7s so almost same speed without and with gravity.
Note: See
TracTickets for help on using
tickets.
(In [4301]) re#1207 Changed the method to avoid calling remap on the spectradetectormap every time. Clear the initial map. Speed increase from 36 sec to 2.3s