KernelDb.h: 2011-10-05 Jacob Danton - The placement of int cameraVersion =...
KernelDb.h: 2011-10-05 Jacob Danton - The placement of int cameraVersion = CameraFactory::CameraVersion(lab); was the reason that spiceinit ran so slowly. Its placement in the "Matches" function resulted in CameraFactory reading in the "Camera.plugin" file for every single kernel in both the CK and SPK kernels.????.db files. That means, for LRO, it was read in around 2100 times. By moving this line of code out of the "Matches" function and into the "FindAll" function (the only one that calls "Matches") and then passing it as a parameter, I was able to reduce the time to about 5% (from almost 4 minutes to under 15 seconds). git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@3427 41f8697f-d340-4b68-9986-7bafba869bb8
Loading
Please sign in to comment