|
From: | Michael Goffioul |
Subject: | Re: integrating QtHandles with Octave |
Date: | Thu, 9 Jan 2014 19:46:04 -0500 |
On 01/09/2014 03:06 PM, Michael Goffioul wrote:Or copying? Even though many parts of Octave pass objects that use
Atomic ref-counting is required for QtHandles, as the GUI runs in a
separate thread and accesses graphics objects from there. There is
indeed a performance penalty, which is more visible when
creating/deleting a lot of objects;
reference counting by const reference (so no copy) we still have a lot
of things that do cause copies to happen (like returning a value from
a function). Any shallow copy that happens is a reference count
operation. Is it slower when using the atomic refcount option?
Is it possible to avoid the requirement? Or does that just complicate
things too much?
[Prev in Thread] | Current Thread | [Next in Thread] |