Performance improvement in llfolderview.cpp

meow-7.2.2
Ansariel 2013-07-30 00:28:14 +02:00
parent b7d7201a30
commit 0387b41dfb
1 changed files with 5 additions and 1 deletions

View File

@ -640,7 +640,11 @@ void LLFolderView::draw()
closeAutoOpenedFolders();
}
if (mSearchTimer.getElapsedTimeF32() > LLUI::sSettingGroups["config"]->getF32("TypeAheadTimeout") || !mSearchString.size())
// <FS:Ansariel> Performance improvement
//if (mSearchTimer.getElapsedTimeF32() > LLUI::sSettingGroups["config"]->getF32("TypeAheadTimeout") || !mSearchString.size())
static LLCachedControl<F32> typeAheadTimeout(*LLUI::sSettingGroups["config"], "TypeAheadTimeout");
if (mSearchTimer.getElapsedTimeF32() > typeAheadTimeout || !mSearchString.size())
// </FS:Ansariel>
{
mSearchString.clear();
}