You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable tspf is not used and can be removed.
sig_len can be calculated using // rather than / and truncating to an
integer (the latter could be incorrect for records longer than 2**53.)
The output array can be allocated using np.empty instead of np.zeros
since it will be fully initialized by the subsequent loop.
Since each frame is independent of the others, the loop can be broken
up into blocks (here, arbitrarily chosen as 2**16 frames) to reduce
temporary memory usage while still spending most of our CPU time in
numpy operations.
0 commit comments