Cocoa应用程序中的性能调优 [英] Performance tuning in Cocoa application

查看:111
本文介绍了Cocoa应用程序中的性能调优的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Cocoa应用程序,它与Web服务不断通信以获取最新的数据。这大大降低了应用程序的性能。调用是异步的对Web服务,但是调用的数量是巨大的。

I am developing a Cocoa application which communicates constantly with a web service to get up-to-date data. This considerably reduces the performance of the application. The calls are made to the web service asynchronously but the number of calls is huge.

在哪些方面我可以提高应用程序的性能?是否有一个很好的文档/写起来,当一个Cocoa应用程序与Web服务通信时,它提供了最好的实践?

In what ways can I improve the performance of the application? Is there a good document/write up available which gives the best practices to be followed when an a Cocoa application communicates with a web service?

感谢

推荐答案

是的!苹果实际上有一些非常简洁的性能指南,涵盖了很多技巧和技巧,我相信你会找到一些与你自己的应用程序相关的东西。可能有一些特定于10.5的附加指南,我还没有看到,但这里有三个我发现在过去是有用的。

Yes! Apple actually has some very concise guides on performance that cover a lot of tricks and techniques, I'm sure you'll find something relevant to your own application. There may be some additional guides specific to 10.5 I haven't seen yet, but here are three I've found useful in the past.

  • Performance Overview
  • Cocoa Performance Guidelines
  • Cocoa Drawing Performance Guidelines

最重要的事情是,你需要使用性能工具来准确地查看瓶颈发生的位置。有时它可能在你最不希望的地方。

The most important thing to take away though, is that you need to use performance tools to see exactly where the bottleneck is occurring. Sometimes it may be in the place you least expect it.

这篇关于Cocoa应用程序中的性能调优的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆