-2

为什么启用弧的应用程序运行缓慢。我已对所有应用程序源文件 .h 和 .m 文件进行了更改。但是应用程序启动非常缓慢。

我已经为优化中的 Debug 选项提供了 -O0 值,并为发布提供了 -os 值。但是我的应用程序仍然无法正常运行。请告诉我如何快速启动应用程序。

4

1 回答 1

1

0) You need to profile your app to determine where it is spending its time, and to find what does not match your expectations. Instruments.app is awesome at helping you with this -- Learn to use it.

1) If this is a quick "I just converted my project to ARC, and now it is much slower with no other changes.", then you should begin with point#0 (above). …but you may also be interested in reading about the performance and semantic differences in ARC and MRC programs. "Switching on" ARC is certainly capable of introducing overhead. How that affects your program… well, you would have to measure and understand a good amount of how it works. MRC alone isn't a formula for a fast program -- you would need to understand a whole lot more.

于 2012-08-23T05:14:10.603 回答