Open bhilbert4 opened 2 years ago
In thumbnails_ajax in data_containers.py, get_filenames_by_instrument
is called, which generates a list of filenames. There is then a list comprehension over the filenames to generate a list of rootnames (e.g. jw01016001001_2102_00001). There is then a loop over rootnames. Within that loop, there is a list comprehension that loops over the original filenames to find the files that contain the current rootname. This seems overly complicated. There may be a way to modify this and reduce the number of loops.
This is just a general working list of ideas that may be helpful for speeding up the web app. As I'm looking through the code while working on other issues, I'm seeing places where we may be able to speed things up. This Issue is meant to capture those ideas so that they are not lost, and the ideas can be investigated later.