Efficiency of LinkedRef Lists?

Post » Thu Nov 29, 2012 8:44 pm

So how does taking advantage of LinkedRefs compare to Array properties and Formlist access?

From what I've gathered FormList was understandably slower than Array properties, but I've never been able to find anything on Linked Ref lists. In all honesty, I'd rather do FormLists or LinkedRefs because they are by far more readable to people editing them (oh hey, click click lines connect here and what I think is a hash array from keywords!). And they stand lesser chance of getting messed up or deleted when the object containing array properties gets messed with.

Can any mad scientists out there offer enlightenment on the performance of these?
User avatar
Darlene DIllow
 
Posts: 3403
Joined: Fri Oct 26, 2007 5:34 am

Post » Thu Nov 29, 2012 8:33 pm

An array wil be *substantially faster than http://www.creationkit.com/ObjectReference.GetLinkedRef_(Papyrus)/http://www.creationkit.com/GetNthLinkedRef_-_ObjectReference or http://www.creationkit.com/GetAt_-_FormList given there's no function call when using an array. Using an array won't make anything more difficult to read, IMO, than if a FormList is used. If timing is of the essence, use an array. If not a FormList will suffice.

*to what extent I'm not sure, but you could measure this sort of thing with http://www.gamesas.com/topic/1409880-relz-wipz-code-comparer-papyrus.
User avatar
SamanthaLove
 
Posts: 3565
Joined: Mon Dec 11, 2006 3:54 am


Return to V - Skyrim