@increpare Ternary acceptable? return a=0 ? b==0 : (a&b)!=0 ;
@thegrieve @jwreschnig @tccoxon @zarawesome awesome suggestions http://jsperf.com/compare-bitwise-things … they're all basically the same performance-wise :D
-
-
@increpare@thegrieve@jwreschnig@zarawesome if the compiler's halfway decent it should know how to optimize these anyway. -
@tccoxon@increpare@thegrieve@jwreschnig he's doing it in javascript, so presumably less operations would be the best - 1 more reply
New conversation -
-
-
@increpare I'm surprised naive is even a comparable speed. It's fastest for me (0.7% :P).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.