$darkmode
Elektra 0.11.0
|
On structures like maps or arrays there are different possibilities which keys are looked up in the KeySet and which are simply iterated.
Without any guidelines, applications would provide arbitrary inconsistent behavior.
Every key that an application wants to use, must be looked up with ksLookup
using a cascading lookup key.
spec
is always honored)ksLookup
is quite cheap as it has only a few simple loops, only one allocation and less than 10% of CPU time in profiling, even in very simple applications with many lookups.Needs some helper functions or support in bindings as it is a bit tricky to implement e.g. for arrays.