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

Re: [T-Merge Patch] Reduce code duplication

From: Oto BREZINA <otik_at_printflow.eu>
Date: Sat, 23 Apr 2011 17:46:04 +0200

On 2011-04-23 14:27, Stefan Küng wrote:
> On 22.04.2011 23:47, Oto BREZINA wrote:
>> Attached patch:
>> * Add boost::smart_ptr
>> * update boost to 1.46.1
> May I ask why you need that and what for?
> I don't like to add a bunch of files for just one use that most likely
> could be done some other way too.
For example there is too many copy within Undo which slow down operations.
Instead of copy I would create allviewstate as shared pointer and that
just move it into undo list.
I can try other ways to speed up first, or try improvemets localy and
than ask for adding boost::smart_ptr again.

I would also like to share some information within unknown number of
records without implementing heavy logic. boost::mart_ptr is ref
counting pointer. We use it and we found it quiet good.
However this may become to be only intermediate step in screen 2 view
> For example, we have the auto_ptr.h already and then there's the auto
> pointer in the standard c runtime library which could be used instead.
I never used those. Will check if that may do a job.
> Stefan

Oto BREZINA, Printflow s.r.o., EU
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-04-23 17:46:09 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.