Is garbage collection used in production quality Cocoa apps?

后端 未结 5 1655
有刺的猬
有刺的猬 2021-02-06 09:34

I\'m mainly wondering about the affect that garbage collection would have on performance. Is the use of garbage collection frowned upon for release apps?

Another concern

5条回答
  •  灰色年华
    2021-02-06 10:16

    I use GC whenever I can, because the best code of all is the code you don't have to write in the first place. Also, as Bbum pointed out above, running under GC means that you have far more information available for performance analysis, should you need to debug any bottlenecks.

提交回复
热议问题