|
From: | John W. Eaton |
Subject: | Re: integrating QtHandles with Octave |
Date: | Thu, 09 Jan 2014 15:26:23 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 |
On 01/09/2014 03:06 PM, Michael Goffioul wrote:
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;
Or copying? Even though many parts of Octave pass objects that use 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? jwe
[Prev in Thread] | Current Thread | [Next in Thread] |