• 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] Storeing as an Array is faster?

Which is Faster?

  • Individual

    Votes: 1 100.0%
  • Array

    Votes: 0 0.0%

  • Total voters
    1
Status
Not open for further replies.
Level 9
Joined
Jul 27, 2006
Messages
652
Ok... I’ve come up with a theory that storing an array in a game cache and retrieving it is faster than storing each individual integer...

For example if you needed to store several unit and a group.
The normal way to store these is to use the return bug and then store each
Individual one and then retrieve it when needed.
But if you were to add an integer array and store it, the retrieve it then get the info from the array would it be faster?

My argument is that if you only have to retrieve one thing it would take a lot less time than retrieving several things...

However I suspect that an array is just a way of pointing to a stored variable not variable containing variables...
 
Level 11
Joined
Oct 13, 2005
Messages
233
Gamecache is a hash table I've heard and a hash table is just an array that can take a string and change it to produce a unique integer for it.

Anyways, you can't store an array value in a gamecache simply because Wc3 doesn't allow pointers. I myself can't completely understand what you are asking, so I can't answer the question. Please describe your theory more clearly.
 
Level 9
Joined
Jul 27, 2006
Messages
652
Please ignore my stupidity...
I forgot that you cant store and retrive arrays from a gamecache...
*slaps self repeatedly*
 
Level 9
Joined
Jul 27, 2006
Messages
652
Hmmm im nt quite sure what struts are... Any chance you could give a brief explination?
 
Status
Not open for further replies.
Top