only using cache-first logic if caching features
This commit is contained in:
parent
1ecdba1965
commit
8b66c34eca
1 changed files with 11 additions and 4 deletions
|
@ -273,14 +273,21 @@ private:
|
|||
|
||||
// process features
|
||||
featureset_ptr fs;
|
||||
if (first)
|
||||
if (cache_features)
|
||||
{
|
||||
first = false;
|
||||
fs = ds->features(q);
|
||||
if (first)
|
||||
{
|
||||
first = false;
|
||||
fs = ds->features(q);
|
||||
}
|
||||
else
|
||||
{
|
||||
fs = cache.features(q);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
fs = cache.features(q);
|
||||
fs = ds->features(q);
|
||||
}
|
||||
|
||||
if (fs)
|
||||
|
|
Loading…
Reference in a new issue