Speed of Comparison operators

后端 未结 6 2265
走了就别回头了
走了就别回头了 2020-12-19 08:45

In languages such as... well anything, both operators for < and <= (and their opposites) exist. Which would be faster, and how are they interpreted?

6条回答
  •  暖寄归人
    2020-12-19 09:27

    Prefer the first one.

    In some languages with dynamic types the running environment has to figure out what the type of y is and execute the appropriate + operator.

提交回复
热议问题