• 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] 100 string checks vs 1000 boolean checks?

Status
Not open for further replies.
Level 1
Joined
Nov 30, 2005
Messages
61
100 string checks (in array) vs 1000 boolean checks? (in array), which one would be faster NOT including string leaks.

I need to know for this...

A indefinite # of strings in a array must be checked first. If the target string is not found, a 2nd, much larger ( 10X would be a good estimate ) array of strings must be checked which contains all of the values in the first array. Using a attached boolean array, I would be able to stop strings from being checked twice, but would it be worth it?
 
Level 1
Joined
Nov 30, 2005
Messages
61
Ok so checking something which only has 2 different outcomes as opposed to something that has billions of outcomes takes the same processing? Wow...
 
Status
Not open for further replies.
Top