AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cellarray & celltrie (https://forums.alliedmods.net/showthread.php?t=215587)

.Dare Devil. 05-09-2013 17:59

cellarray & celltrie
 
Why some highly experienced coders use celltrie and not cellarray?
This is the question what i wondering to ask long time ago.
Is celltrie faster? Or in which case its better to use celltrie and which not?
Thanks!

meTaLiCroSS 05-09-2013 18:00

Re: cellarray & celltrie
 
Both are different, have you seen the respective include files? They are used for many things lol

Arkshine 05-09-2013 18:03

Re: cellarray & celltrie
 
A Trie is not the same as an Array.

Some explanations : https://forums.alliedmods.net/showthread.php?t=88396

.Dare Devil. 05-09-2013 18:06

Re: cellarray & celltrie
 
Thanks!

YakumoHiratsuhi 05-09-2013 19:15

Re: cellarray & celltrie
 
I understand celltrie and cellarray this way, obviously the way to code it is different.

PHP Code:

// Cell arrays
CellArray[0] = 52
CellArray
[1] = 64
CellArray
[2] = 15

// Cell Tries
CellTrie["somestring"] = 12
CellTrie
["somestringtwo"] = 456
CellTrie
["anotherstring"] = 23 



All times are GMT -4. The time now is 10:57.

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