Empirically reduces runtime roughly by factor of 60-90x
Don't need to use File IO for each function call
It is a tad messy in terms of number of variables. Can refactor into a dictionary if wanted. Also, I am not sure what naming convention is for 'private' variables that are not in a class.
If a dictionary or new naming convention is preferred that is a simple change.
Reduce runtime by storing data read from files.
Don't need to use File IO for each function call
It is a tad messy in terms of number of variables. Can refactor into a dictionary if wanted. Also, I am not sure what naming convention is for 'private' variables that are not in a class. If a dictionary or new naming convention is preferred that is a simple change.