?: Operator Vs. If Statement Performance

后端 未结 7 848
轻奢々
轻奢々 2020-12-05 23:18

I\'ve been trying to optimize my code to make it a little more concise and readable and was hoping I wasn\'t causing poorer performance from doing it. I think my changes mi

7条回答
  •  鱼传尺愫
    2020-12-05 23:53

    Almost no significant performance difference in this case.

    When the performance difference is negligible, it is all about readable code.

提交回复
热议问题