Performance of bitwise operators in javascript

后端 未结 12 2384
难免孤独
难免孤独 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:31

    People do interesting things in JavaScript.

    For example there are a lot of cryptography algorithms implemented in it (for various reasons); so of course bitwise operators are used.

提交回复
热议问题