← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/ai_variables_rework into lp:widelands

 

The problem with list is that everytime item is added/removed the memory is allocated/deallocated. The deques and vectors behave differently. And this is the main goal - reduce number of memory de/allocations.
Also I saw some benchmarks and std::list were quite slow - depending on what you are doing with them of course.
Also, deque can access members via [] and this is nice bonus...

I added the static keyword.
-- 
https://code.launchpad.net/~widelands-dev/widelands/ai_variables_rework/+merge/333041
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/ai_variables_rework into lp:widelands.


References