[ripple/rippled] Add a ‘domain’ field to validator lists: (#2619)

HowardHinnant commented on this pull request.

> {
— ++iNew;
— ++iOld;
+ if (it->second <= 0) + it = keyListings_.erase(it); + else + ++it; While the new code is more readable, and I like the use of the std::algorithms, this turns a 1-pass algorithm into a 3-pass algorithm. I'm not sure it is worth the performance hit.

Добавить комментарий