Performance of bitwise operators in javascript

后端 未结 12 2376
难免孤独
难免孤独 2020-12-14 08:33

One of the main ideas behind using bitwise operators in languages like C++/java/C# is that they\'re extremely fast. But I\'ve heard that in javascript they\'re very slow (ad

12条回答
  •  北海茫月
    2020-12-14 09:19

    I found some good info @ http://dreaminginjavascript.wordpress.com/2009/02/09/bitwise-byte-foolish/

    Apparently they perform very well these days. Why would you use them? Same reason you would anywhere else.

提交回复
热议问题