Test a section/key entry in .ini for existance

Features wanted...
PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Test a section/key entry in .ini for existance

Post by PeterH »

Just an idea
(or name it a 3rd level wish)

You describe suffering performance on getting just single keys in XY-algorythm.

Couldn't it be possible to make it better by allowing to request multiple keys for XY-type? That is, for key= allow a list of keys, and the return will be a list of values. (Each of those could be the error-indicator for missing key etc.)
Problem might be the separator - it may not appear in any value. Could be resolved by using XY's modern :ugeek: arrays!
For compatibility of return-type: if a list is requested, it must be specified as an array. Only then an array is returned.

But as said: just an idea. Though would be an 'official' use for XY's array! :whistle:

admin
Site Admin
Posts: 66094
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Test a section/key entry in .ini for existance

Post by admin »

Is this an academic question or are you really suffering from performance issues here?

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Test a section/key entry in .ini for existance

Post by PeterH »

This question was just the combination of the info in help about (performance &) your use to mass-read keys, and my idea to read multiple keys.

But no performance problems seen, and no really need. Only "nice to have".
If it's much work/time: just forget it - no problem at all.

Post Reply