[Script] NoSlowDown
-
@Kasumi_Scarlet But why would you use BITWISE AND instead of Remainder, we're not a freakin' computers to do 010101010 operations in our minds. You literally have to search it up to use it instead of just using Remainder that doesn't make the code longer and keeps it readable. It only makes sense using BITWISE NOT to me with indexOf since ~-1 will return false every other number true.
-
@Aftery said in [Script] NoSlowDown:
@CzechHek said in [Script] NoSlowDown:
@Kasumi_Scarlet But why would you use BITWISE AND instead of Remainder, we're not a freakin' computers to do 010101010 operations in our minds. You literally have to search it up to use it instead of just using Remainder that doesn't make the code longer and keeps it readable. It only makes sense using BITWISE NOT to me with indexOf since ~-1 will return false every other number true.
CzechHek
Afteri
-
@CzechHek Oh I think it's true. I use
~array.indexOf(e)
too.
My opinion is just that make codes run more faster(although a little). Maybe we have different habit about using byte operators& | ^ ~
. And that's why I use SHL, SHR, OR on Colors, insteadof calculate strange numbers and to Strings -
This post is deleted!