MarkBaker / Tries

Trie and RadixTrie Datastructure Implementations in PHP, with a couple of working examples showing their use
MIT License
21 stars 4 forks source link

Small updates on trie data #2

Closed jaytaph closed 9 years ago

jaytaph commented 9 years ago

I actually did another test, with getters/setters but the system would run in around 0.3 seconds (instead of 0.05). That is a HUGE difference but could be expected with many additional calls. It seems that public properties seems to be the fastest way.

MarkBaker commented 9 years ago

Merged manually, because I modified other classes to maintain the same property declaration as null, and switched the array to use short array syntax.... thanks for the fix and for the input