|
From: Marcin G. <go...@go...> - 2001-11-18 21:56:10
|
On Sun 18. November 2001 19:45, you wrote: > rationale behind your "Provider Cache" thoughts, as I do not see that a > getInstance call would result in enumInstances (although I could imagine > that this happens for associators). The rationale behind my idea is the new getInstance fsvol implementation: nameSpace = CIMObjectPathGetNameSpace( nh , cop ); cLD = CIMObjectPathNew( nh, "Linux_LocalFileSystem" ); CIMObjectPathSetNameSpace( nh , cLD , nameSpace ); ->vi = CIMOMEnumInstances( nh , cLD ,0 ,0); size = VectorSize(nh,vi); nm = CIMObjectPathGetStringKeyValue( nh, cop, "Name"); I think that it's simply easier to do this locally, without involving CIMOM to do enumInstances for us. Since getInstance is called after enumInstances has been called I think enumInstances could cache all the relevant information so that getInstance would be faster. This observation also grew from the speed of executing getInstance on not-so-weak machine (Duron 750,384MB RAM) with SNIA CIMOM - enumInstances was acceptable but clicking on any Linux_LocalFileSystem in openCIMOM browser takes 1-2 seconds to execute which I think is pretty bad. Cheers, Marcin -- Marcin Gozdalik <go...@go...> |