• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Minor efficiency question

Status
Not open for further replies.
Level 5
Joined
Sep 19, 2006
Messages
152
Which value is retrieved in a trigger more quickly/efficiently:

the attribute of a specific unit (i.e. the strength of a certain hero)
or
a value from a global real array (i.e. udg_RealValue [1])?
 
Level 11
Joined
Aug 25, 2006
Messages
971
A value from a global array will probably be faster because all that does is reference the memory. The hero stat references a reference which references the memory.
 
Status
Not open for further replies.
Top