[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: std::vector is slow

From: Stefan Hett <stefan_at_egosoft.com>
Date: Tue, 26 Apr 2011 15:50:32 +0200

As a rule of thumb: Never run/estimate/investigate performance in debug
builds. Debug builds are for debugging only, release builds are where
you can investigate the performance of ur code.
Otherwise u'll just chase ghosts. ;-)
> On 2011-04-25 14:53, Stefan Küng wrote:
>> On 25.04.2011 14:19, Oto BREZINA wrote:
>>> I have implemented some cache but everything slows down.
>>> I found that std::vector is slow do we have alternative, different
>>> setting or something to speed it up ?
>> What operation with a vector is slow? Can't be all of them...
> for example clear()
> Compare TortoiseDOC_jp with TortoiseDOC_zn, select all left text and
> select use block (alternatively use this file).
> Then hit undo it will take some secs. Try to debug end will found that
> clearing it taking that time - at least my last test look like that
> (can't debug right now).
> After reading some post I found it may be because of DEBUG build where
> lot of tests are enabled.
>> Stefan
>>

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2724370

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-26 17:02:54 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.