CTH file reader needs to only open files once
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The CTH reader needs to only open files once. At present, files are opened three times. As per an e-mail from Robert,
Every Process will do the following during Request Information: • Open the input file and read 7 bits • Close input file • If Time Series o Will query the file system to see the number of files in the time series. The net result is that we will call access() on each file in the time series plus 3 to see if we have read access and that file exists. At worse we will ask for we have read access on 3 files that don't exist. • Now we will read the first file in the time series for the information. o We read the majority of the file ( 86% in this case ) o We do 147 relative seeks o We do 22 absolute seeks from the start of the file Now the primary issue is that the Request Information step is called 3 times before the GUI Panel is displayed, causing all the above file IO to happen 3 times on each process.
I also have attached a basic log of the read step, and I can generate an even more detailed log if needed.