Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lobby Info: cleanup and optimization
* Deployed auto for iterators. * Reserve container space when appropriate to reduce unnecessary copying. This is especially useful since the game_info class has a rather lot of stuff in it. * Don't recreate sorted users vector every time said vector is sorted. The only time the actual contents would change are when the source (users) change, so just populate it at that point. * Remove the games_filtered vector. This was essentially just used to get the number of visible games with a filter active, but boost::dynamic_bitset (games_visibility) already provides appropriate functionality, rendering it useless. * Removed an unnecessary inline overload. Default arguments suffice instead.
- Loading branch information
Showing
3 changed files
with
27 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters