[Cppcms-users] std::vector in coding standarts
Brought to you by:
artyom-beilis
From: <sla...@ya...> - 2010-11-16 10:45:55
|
Hello Artyom! May be it's not so significant, but i think it's necessary to discuss. At http://cppcms.sourceforge.net/wikipp/en/page/cppcms_1x_coding_standards you wrote that "Always prefer std::vector to std::list - it has better performance because it is cache friendly." But imho, doing so can lead to performance troubles in some cases: for example, if you try to remove an item from the middle of multimillion std::vector - unlike std::list. --- Regards, kpeo |