Patch from issue 1384: "Speedup enhancement of the thumbnails' browser"

This commit is contained in:
natureh
2012-06-02 14:46:50 +02:00
parent c78e5699e6
commit 842e446060
3 changed files with 25 additions and 12 deletions

View File

@@ -232,8 +232,8 @@ void Thumbnail::loadProcParams () {
pparamsValid = false;
pparams.setDefaults();
// WARNING: loading the default Raw or Img pp3 file at each thumbnail may be a performance bottleneck
pparams.load(options.profilePath+"/" + (getType()==FT_Raw?options.defProfRaw:options.defProfImg) + paramFileExtension);
PartialProfile *defaultPP = profileStore.getDefaultPartialProfile(getType()==FT_Raw);
defaultPP->applyTo(&pparams);
if (options.paramsLoadLocation==PLL_Input) {
// try to load it from params file next to the image file