From c7cb92f43f97ef5558eee0d7be6f18192134f3ec Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 12 Apr 2015 02:50:18 +0200 Subject: Replace NodeVector by ManagedVector where NodeVector functionality is not needed. Reduces calls to "Manager.registerEvent" to <10% of original value --- src/core/resource/ResourceManager.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/resource/ResourceManager.hpp') diff --git a/src/core/resource/ResourceManager.hpp b/src/core/resource/ResourceManager.hpp index 186ce42..67a650d 100644 --- a/src/core/resource/ResourceManager.hpp +++ b/src/core/resource/ResourceManager.hpp @@ -136,7 +136,7 @@ private: * @param mode describes whether the file should be included or imported. * @return the parsed nodes or an empty list if something went wrong. */ - NodeVector parse(ParserContext &ctx, const std::string &path, + ManagedVector parse(ParserContext &ctx, const std::string &path, const std::string &mimetype, const std::string &rel, const RttiSet &supportedTypes, ParseMode mode); @@ -196,7 +196,7 @@ public: * checked, not the actual result. * @return the parsed nodes or an empty list if something went wrong. */ - NodeVector include(ParserContext &ctx, const std::string &path, + ManagedVector include(ParserContext &ctx, const std::string &path, const std::string &mimetype, const std::string &rel, const RttiSet &supportedTypes); -- cgit v1.2.3