Calling registry.GetStringValue directly (eg, agnostic mode) is roughly 2x as fast as registry.ExecMethod_("GetStringValue", ..) with a "__ProviderArchitecture" flag / context.
The relevant bit of the output is (the third column is the difference to the agnostic duration):
Copied directly from #7 :
See cscript-registry-benchmark and its output.
Calling
registry.GetStringValue
directly (eg, agnostic mode) is roughly 2x as fast asregistry.ExecMethod_("GetStringValue", ..)
with a "__ProviderArchitecture" flag / context.The relevant bit of the output is (the third column is the difference to the agnostic duration):
As the third row shows, a small speed gain can be made by reusing the method object:
Instead of doing
registry.Methods_("GetStringValue").Inparameters
each time.PS. You might see "20000 sec" in the output, that's a formatting mistake, should be 2 seconds.