View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 03-25-2016 , 06:13   Re: Dynamic Objects and Properties - v.0.0.10 - [2016.03.25]
Reply With Quote #47

When you lookup a member by name a Trie is used.

- When a member name is not found in the trie. If required, a new member is created at the next offset and the name is stored in the trie with the members offset as the value. The next available offset is also calculated and stored.

When you lookup a member by offset the trie isnt required so you gain a small performance boost.

Most of the work in member lookups is recalculating an offset into an index and cell position for the array that holds the data and actually fetching or storing the data in the array.
__________________
Neuro Toxin is offline