HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

set vs math

05-09-2007, 10:42 PM#1
MaD[Lion]
i wonder if math in jass is slower than set vars or not.

Does parenteses make it slower? like (1-(((a+b)/(a-b))*((c/b)+k))-(a*b)))
is that one slower than set?
05-09-2007, 10:52 PM#2
Toadcop
Quote:
(1-(((a+b)/(a-b))*((c/b)+k))-(a*b)))
this would be faster than to split it... 100% it's anywhere so.
05-10-2007, 12:13 AM#3
Vexorian
that example is kind of trivial considering there are no duplicate operations...
05-10-2007, 07:52 AM#4
MaD[Lion]
the the machine dont use more time to solve the parenteses? or are these solved during compilation