@GunChleoc - re observers - there is one point why vectors are suitable - they 
are ordered and have a front member that can be moved to the back. This is used 
when doing various kinds of check - like check one building every 10 seconds.
Usually a player has couple of ships, but quite a lot of buildings, but most of 
all - a lot of roads and flags. These would be best candidates for 
optimization, but these also needs an order, because they are accessed 
similarly like buildings.

So this is not that straightforward.

BTW, I started to use unordered_set where suitable (as you probably noticed) - 
exactly for performance point of view.
-- 
https://code.launchpad.net/~widelands-dev/widelands/seafaring-ai/+merge/242271
Your team Widelands Developers is requested to review the proposed merge of 
lp:~widelands-dev/widelands/seafaring-ai into lp:widelands.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to