Objective C — What is the fastest and most efficient way to enumerate an array?

前端 未结 3 383
予麋鹿
予麋鹿 2020-12-23 17:24

Edit

I read through some articles on blocks and fast enumeration and GCD and the like. @Bbum, who\'s written many articles on the subject of GCD and blocks, says th

3条回答
  •  既然无缘
    2020-12-23 17:43

    The fastest code is the code that reaches the market first.

    Seriously -- unless you have a measurable performance problem, this particular choice should occupy no more of your time than it takes to answer which of these patterns fits the most naturally with my project's style?

    Note: adressing a performance problem by moving from serial to concurrent execution usually results having two problems; performance & concurrency.

提交回复
热议问题