Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++ Subject: Re: Question about destructors Date: Wed, 08 Feb 2012 22:32:43 +1300 Lines: 13 Message-ID: <9petprFlo4U4@mid.individual.net> References: <2115496.607.1328686761742.JavaMail.geo-discussion-forums@proa7> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net tmdbFgttt+VA27E7DdK0TAASQxqDgWUTHI4GFOX0PgxRqJUuRh Cancel-Lock: sha1:duwvB7P56c5vCON0o3kRImZ6Shg= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:6.0.2) Gecko/20111003 Thunderbird/6.0.2 In-Reply-To: <2115496.607.1328686761742.JavaMail.geo-discussion-forums@proa7> Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:13841 On 02/ 8/12 08:39 PM, 88888 Dihedral wrote: > It slows down as the list in other high level languages in basic operations. > > The vector part in C++ offers auto-expansion and the boundary checking mechanism > absent from an array. For a list or a vector in C++ of tens of thousands of objects in non-heavy computing tasks it can save troubles. > > But for digital images and videos of tens of millions of pixels to be processed > the C++ vector adds overheads, too. No more than naked dynamic arrays. -- Ian Collins