Raised This Month: $51 Target: $400
 12% 

Save a client bool even while disconnected without clientprefs?


Post New Thread Reply   
 
Thread Tools Display Modes
Miu
Veteran Member
Join Date: Nov 2013
Old 12-12-2015 , 18:15   Re: Save a client bool even while disconnected without clientprefs?
Reply With Quote #11

Quote:
Originally Posted by thecount View Post
Hm. Never used one before. Is there a large difference in how the information is handled? Because you still need strings nonetheless.

EDIT: Ok, so after reading a bit it seems tries are basically adt maps ordered by strings instead of numbers. It saves some iterations so this way is more efficient.
hash maps have constant time lookups o.o
Miu is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-13-2015 , 05:14   Re: Save a client bool even while disconnected without clientprefs?
Reply With Quote #12

the point of adt_trie/hashmap afaik is that using the string as a key is/can be faster than iterating through every index in an adt_array, or something.

Anyway that solves this thread.
__________________

Last edited by Chdata; 12-13-2015 at 05:14.
Chdata 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 01:19.


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