slac-lcls / smalldata_tools

code to facilitate production of LCLS small data files and the analysis thereof
12 stars 12 forks source link

remove duplicate calcs, use zip for jit compilation recognition #14

Closed aegger13 closed 4 years ago

aegger13 commented 4 years ago

image

Use zip instead of itertools.izip iterator to keep fit from defaulting to forceobj=False Calculate limits before loop

Was about 440 s for single iteration, now about 0.5 s. Total time including 0.8 s canny edge finding is less than 3 seconds now.