mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Add perf comment
This commit is contained in:
parent
aedc6720c7
commit
89175ee0f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user