Skip to content
Commit e1345847 authored by Steven Lambright's avatar Steven Lambright
Browse files

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
parent c9c744c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment