Performance

- Switched Hooks to a hash lookup, instead of linearly comparison.
This commit is contained in:
Paul Beckingham 2010-07-12 20:17:59 -04:00
parent fdf7d2203f
commit d87e7c6934
2 changed files with 183 additions and 102 deletions

View file

@ -74,6 +74,11 @@ private:
API api;
#endif
std::vector <Hook> all; // All current hooks.
std::vector <std::string> validProgramEvents;
std::vector <std::string> validListEvents;
std::vector <std::string> validTaskEvents;
std::vector <std::string> validFieldEvents;
};
#endif