Zarathustra217 wrote...
Sorry for the off topic, but I find this very much interesting. I figure this also entails that if you have to look for a handful spell effects on a creature, it is faster to use GetHasSpellEffect several times than to loop through each effect on the creature and check for the spell ID of that effect. Normally, I would expect latter solution to be most effective (one search vs. multiple) but given that the GetHasSpellEffect is an internal function, it would be far faster than the scripted loop.
Thoughts?
Yep, That is what is being said.
Failed.Bard wrote...
A well written homebrew function compiled with one of the better compilers (like is integrated into Virusman's toolset extender) will be faster than the equivalent likely 95% of the time. Every single replacement function I've written and compared to the bioware default has been faster, even if only by a few percent over thousands of cycles.
Likely this deserves its own topic though, so people could get more in depth into replacement function comparisons.
Yes, Home brew vs Home brew can be compiled better using a better compiler.
Try and rewrite an internal function with nwscript, something like GetItemPossessedBy, and see if you get any gain.