Do comments affect performance?

后端 未结 5 607
囚心锁ツ
囚心锁ツ 2021-02-05 11:05

Am I correct to say that JavaScript code isn\'t compiled, not even JIT? If so, does that mean that comments have an affect on performance, and I should be very careful where I p

5条回答
  •  伪装坚强ぢ
    2021-02-05 11:37

    It can prevent functions from being inlined, which affects performance, though this shouldn't really happen.

提交回复
热议问题