On 10/29/2010 05:52 AM, Daniel P. Berrange wrote:
The virConnectPtr struct will cache instances of all other
objects. APIs like virDomainLookupByUUID will return a
cached object, so if you do virDomainLookupByUUID twice in
a row, you'll get the same exact virDomainPtr instance.
Dave already
On Fri, Oct 29, 2010 at 12:52:18PM +0100, Daniel P. Berrange wrote:
The virConnectPtr struct will cache instances of all other
objects. APIs like virDomainLookupByUUID will return a
cached object, so if you do virDomainLookupByUUID twice in
a row, you'll get the same exact virDomainPtr
On Thu, Nov 11, 2010 at 04:20:43PM +, Daniel P. Berrange wrote:
On Fri, Oct 29, 2010 at 12:52:18PM +0100, Daniel P. Berrange wrote:
The virConnectPtr struct will cache instances of all other
objects. APIs like virDomainLookupByUUID will return a
cached object, so if you do
On Thu, Nov 11, 2010 at 11:44:42AM -0500, Dave Allan wrote:
On Thu, Nov 11, 2010 at 04:20:43PM +, Daniel P. Berrange wrote:
On Fri, Oct 29, 2010 at 12:52:18PM +0100, Daniel P. Berrange wrote:
The virConnectPtr struct will cache instances of all other
objects. APIs like
On Thu, Nov 11, 2010 at 04:55:03PM +, Daniel P. Berrange wrote:
On Thu, Nov 11, 2010 at 11:44:42AM -0500, Dave Allan wrote:
On Thu, Nov 11, 2010 at 04:20:43PM +, Daniel P. Berrange wrote:
On Fri, Oct 29, 2010 at 12:52:18PM +0100, Daniel P. Berrange wrote:
The virConnectPtr struct
The virConnectPtr struct will cache instances of all other
objects. APIs like virDomainLookupByUUID will return a
cached object, so if you do virDomainLookupByUUID twice in
a row, you'll get the same exact virDomainPtr instance.
This does not have any performance benefit, since the actual
logic
On Fri, Oct 29, 2010 at 12:52:18PM +0100, Daniel P. Berrange wrote:
The virConnectPtr struct will cache instances of all other
objects. APIs like virDomainLookupByUUID will return a
cached object, so if you do virDomainLookupByUUID twice in
a row, you'll get the same exact virDomainPtr