From: Guillaume Munch Date: Sat, 11 Jun 2016 08:14:38 +0000 (+0100) Subject: Add perf comment X-Git-Tag: 2.3.0alpha1~1472 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=89175ee0f10f75311e2a746dbd450fb23d6c2845;p=features.git Add perf comment --- diff --git a/src/KeyMap.cpp b/src/KeyMap.cpp index 7628d0dfdb..32f99265dd 100644 --- a/src/KeyMap.cpp +++ b/src/KeyMap.cpp @@ -106,6 +106,8 @@ void KeyMap::bind(KeySequence * seq, FuncRequest const & func, unsigned int r) KeyModifier const mod2 = seq->modifiers[r].second; // check if key is already there + // FIXME perf: Profiling shows that this is responsible of 99% of the + // cost of GuiPrefs::applyView() Table::iterator end = table.end(); for (Table::iterator it = table.begin(); it != end; ++it) { if (code == it->code