| 01-31-2010, 02:34 PM | #1 |
which is faster GetTriggerUnit or GetSpellAbilityUnit? |
| 01-31-2010, 02:57 PM | #2 |
why not to test on your own? |
| 01-31-2010, 03:06 PM | #3 |
Both are natives, GetTriggerUnit() is local though, so what sense does that question make? |
| 01-31-2010, 03:17 PM | #4 | |
Quote:
Even if one is significantly slower than the other, it doesn't matter one bit. This is a function you call only once whenever a spell is cast (that is, if you are smart about it) so just by posting this thread you have already wasted more time than all computers ever to run your map will in case you choose the slower of the two. There is a good reason to use GetTriggerUnit over GetSpellAbilityUnit, but the reason is not speed, it is the fact that GetSpellAbilityUnit is bugged like the rest of spell event responses and works like a simple global rather than being thread-specific. |
| 01-31-2010, 03:24 PM | #5 |
I tried searching and it actually worked for once! I got GetTriggerUnit() VS GetXXXUnit() by searching for "GetTriggerUnit" with Search Titles Only selected. According to Vexorian, GetTriggerUnit is slightly faster. |
| 01-31-2010, 11:06 PM | #6 |
@Anitarf & Iron_Doors got it :). someone told me to use GetTriggerUnit instead GetSpellAbilityUnit, now i got the answers. +rep |
