[Commits] [wesnoth/wesnoth] c1a052: add carryover_add and carryover_percentage to team...
GitHub
noreply at github.com
Thu Mar 26 21:32:53 UTC 2015
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: c1a052714bf5a18ca28ab58e0c4c457bf86dfa22
https://github.com/wesnoth/wesnoth/commit/c1a052714bf5a18ca28ab58e0c4c457bf86dfa22
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2015-03-26 (Thu, 26 Mar 2015)
Changed paths:
M src/team.cpp
Log Message:
-----------
add carryover_add and carryover_percentage to team::attributes list
Commit: 68eaaad4fbf6afe8b1ab36ef937bfea8d5b6447e
https://github.com/wesnoth/wesnoth/commit/68eaaad4fbf6afe8b1ab36ef937bfea8d5b6447e
Author: gfgtdf <f492343 at rmqkr.net>
Date: 2015-03-26 (Thu, 26 Mar 2015)
Changed paths:
M src/team.cpp
M src/team.hpp
Log Message:
-----------
use flat_set for team::attributes
boost::container::flat_set aka sorted vector is much faster than
set::set for iteration, faster for lookup and much slower for
insertion,.
Since we only use team::attributes by iterating over its elements and
never insert elements into it after we create it, it makes sense to use
flat_set here.
Compare: https://github.com/wesnoth/wesnoth/compare/1a92a8206bf9...68eaaad4fbf6
More information about the Commits
mailing list