Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: Fast swapping of STL containers Date: Fri, 24 Jun 2011 22:09:10 +1200 Lines: 20 Message-ID: <96j62qFb9tU3@mid.individual.net> References: <2879c8f0-969f-4ecb-8da8-86874b949168@t38g2000prj.googlegroups.com> <67239772-4eef-4db5-be19-01a792194bb2@c41g2000yqm.googlegroups.com> <96j3l5Fb9tU1@mid.individual.net> <64e7c240-e321-4550-b65b-265f6950e2d3@x38g2000pri.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net bNH9nqY+44hCZxaZg133MAbrMjwxyjrZbECPJujbua7VYRX7My Cancel-Lock: sha1:zN96LkEuVLJ2g0Kkupg5l8Z3WrI= User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.9) Gecko/20101021 Lightning/1.0b2 Thunderbird/3.1.4 In-Reply-To: <64e7c240-e321-4550-b65b-265f6950e2d3@x38g2000pri.googlegroups.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:7105 On 06/24/11 09:58 PM, ittium wrote: Please don't snip attributions! > On 06/24/11 09:27 PM, Ian Collins wrote: > >> Well come on, it's the library author's job to write efficient code. If >> they didn't, users would soon complain. They have implementation >> specific short cuts available to them that we users do not. >> > > For most of the cases, You are right. When a operation is likely to > take place large number of times per second than exact processing > complexity becomes very important. What difference does the number of calls make? The operation is either efficient, or it isn't. -- Ian Collins