Discard unused config items as early as possibly.

Refs #5400
This commit is contained in:
Gunnar Beutner 2013-12-20 13:15:05 +01:00
parent a4ba11bd13
commit 38aa231a2d
2 changed files with 3 additions and 3 deletions

View File

@ -113,9 +113,6 @@ static bool LoadConfigFiles(const String& appType, bool validateOnly)
if (!result)
return false;
ConfigItem::DiscardItems();
ConfigType::DiscardTypes();
return true;
}

View File

@ -313,6 +313,9 @@ bool ConfigItem::ActivateItems(bool validateOnly)
upq.Join();
ConfigItem::DiscardItems();
ConfigType::DiscardTypes();
/* log stats for external parsers */
BOOST_FOREACH(const DynamicType::Ptr& type, DynamicType::GetTypes()) {
if (type->GetObjects().size() > 0)