• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[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