doubling the number of tests, but not taking twice as long
larry.martell at gmail.com
Mon Jul 16 14:17:57 EDT 2018
I had some code that did this:
meas_regex = '_M\d+_'
meas_re = re.compile(meas_regex)
I then had to change it to this:
if 'MeasDisplay' in filename:
if 'PatternFov' in filename:
This code needs to process many tens of 1000's of files, and it runs
often, so it needs to run very fast. Needless to say, my change has
made it take 2x as long. Can anyone see a way to improve that?
More information about the Python-list