Skip to content

Commit

Permalink
KeyList: Optimise concatenation of the string with key list
Browse files Browse the repository at this point in the history
  • Loading branch information
ellysh committed Feb 8, 2013
1 parent 70e746e commit 8c14afd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/server/key_list.cpp
Expand Up @@ -49,11 +49,8 @@ port_t KeyList::GetPort(const string& key) const
}

BINARY_FUNCTOR(AddKeyArray, KeyList::KeyPort::value_type, port_pair, KeyArray&, keys)
/* FIXME: Copy keys by string instead by symbol variant */
copy(port_pair.first.begin(), port_pair.first.end(),
back_inserter(keys));

keys.push_back(';');
keys += port_pair.first;
keys += ';';
END_BINARY_FUNCTOR

KeyArray KeyList::GetKeys() const
Expand Down

0 comments on commit 8c14afd

Please sign in to comment.