I have a choice to make:
Do I access a kvs value directly from code? for example where gkvsSettings is the keystore and gsExeFolder and gsPlayerExe are values stored in it:
OR
Do I dump the kvs to a local map and access the values in the local map from code? Same values and keystore as above, with mapSettings as a local map:
OR
Do I dump the kvs values to local variables and access the local variables from code?
A performance hit to set up the different scenarios is not a problem.
My question is: Is there a big performance difference between these methods during extraction of the individual values?
Do I access a kvs value directly from code? for example where gkvsSettings is the keystore and gsExeFolder and gsPlayerExe are values stored in it:
B4X:
PathToMiniPlayerExe = File.Combine(gkvsSettings.Get("gsExeFolder"),gkvsSettings.Get("gsPlayerExe"))
Do I dump the kvs to a local map and access the values in the local map from code? Same values and keystore as above, with mapSettings as a local map:
B4X:
' Set this up once
Wait For(gkvsSettings.GetMapAsync(gkvsSettings.ListKeys)) complete (mapSettings As Map)
' Then access settings from local map like this:
PathToMiniPlayerExe = File.Combine(mapSettings.Get("gsExeFolder"),mapSettings.Get("gsPlayerExe"))
Do I dump the kvs values to local variables and access the local variables from code?
B4X:
' Set this up once for all the keys in the keystore:
gsExeFolder = gkvsSettings.Get("ExeFolder")
gsPlayerExe = gkvsSettings.Get("PlayerExe")
' etc for all the keys. Then
PathToMiniPlayerExe = File.Combine(gsExeFolder, gsPlayerExe)
My question is: Is there a big performance difference between these methods during extraction of the individual values?