View Single Post
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-16-2014 , 14:38   Re: [INC] Kvizzle - KeyValues made easy
Reply With Quote #21

Quote:
Originally Posted by Popoklopsi View Post
Only because you don't use keyvalues doesn't mean all people don't use it.

KeyValues are not bad itself, it's the API that is really poor.
And if you want to parse valve's keyvalues, there is nothing to change!

And ADT tries are really not much better than keyvalues
The performance of KeyValues is poor. Hence why SourceMod wrote their own parser constructs for it (SMC).

Edit: Incidentally, keys are stored as a linked list in KeyValues, at least according to the documentation for FindLastSubKey (which SourceMod doesn't support).

As for the API for it, part of the problem with the API is that it was originally an OO API and was ported to SourcePawn. As far as I'm aware, SourcePawn doesn't include any of the changes made to it in the Source 2013 SDK (i.e. FOR_EACH_SUBKEY, GetBool, FindLastSubKey, RecursiveMergeKeyValues, etc...). Or even the KeyValuesCompiler?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-16-2014 at 15:01.
Powerlord is offline