Raised This Month: $32 Target: $400
 8% 

Keyvalue tree versus File.ReadLine


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 07-04-2019 , 18:45   Keyvalue tree versus File.ReadLine
Reply With Quote #1

What would be more efficient? I'm trying to disable some plugins at map start and would like to know if I should use KeyValues or File.ReadLine method?

I've always preferred KeyValues as I like the structured data that it provides, but in terms of efficiency do they top reading and writing file lines?
__________________
Spirit_12 is offline
I am inevitable
Member
Join Date: May 2019
Location: 0xA6DA34
Old 07-07-2019 , 08:03   Re: Keyvalue tree versus File.ReadLine
Reply With Quote #2

I'd say that they're both pretty much the same, besides that KeyValues has the structural advantage and the fact that you don't need to read through every single line, trying to get what you want.

Therefore, I'd say KeyValues.
__________________
I do make plugins upon requests, so hit me up on discord if you're interested: Stefan Milivojevic#5311
I am inevitable is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode