框架比较开销 [英] Framework Comparison and Overhead

查看:211
本文介绍了框架比较开销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作是使用Zend Framework开发的Facebook游戏。现在我没有大量的流量,并已经出现相当大的#数据使用/ CPU时间。

I am working on a Facebook game which is developed using Zend framework. Right now I don't have lots of traffic and already seen quite a large # of data usage / CPU time.

其实,我不擅长的Zend。我善于从无到有为PHP和放大器编码; JS。

Actually, I'm not good at Zend. I good at coding from scratch for both PHP & JS.

所以,我很好奇Zend框架的性能。监守我在考虑重建使用Zend作为后端管理数据/会话/逻辑applciation。和用JS(天然code或JQuery的),用于在前端渲染UI和处理在客户端的用户的行动。

so, I am curious about the performance of Zend framework. becuase I'm thinking about rebuilding the applciation using Zend as the backend to manage the data / session / logic. and use JS (native code or JQuery) for the front-end rendering UI and handle user action in the client side.

在之间,使用AJAX从Zend的后端获取数据..最有可能的REST。结果
任何人有关于这种结构的建议?我想减少由服务器的负载,也更易于管理code,再加上更好的用户体验。

In between, use aJax to get data from Zend backend.. most likely REST.
Anyone has suggestion about this kind of structure? I want to cut down the server load by that and also easier to manage code, plus better user experience.

鸭$ P如果任何人有好主意$ pciate。 :)

Appreciate if anyone has good idea. :)

(POST几天后)

所以,基准PHP应该是更快,使用更少的数据传输(如code正确),那么Zend的(或)框架,对不对? code reusablility是不是在这里一个大问题。 :)

so, baseline PHP should be faster and use less data transfer (if code correctly) then Zend (or any) framework, right? Code reusablility is not a big concern here. :)

推荐答案

有只有一件事,如果你认为基于ZF-应用程序是缓慢的先做。衡量它。各种工具存在,将采取的 Xdebug的的分析输出到显示出哪些部件放缓的过程中,那么你可以让一些动作朝优化那些部分(如重量更轻初始化,和/或某些高速缓存)。一个很好的资源是Zend框架的书在 survivethedeepend.com ,<一个href=\"http://www.survivethedeepend.com/zendframeworkbook/en/1.0/performance.optimisation.for.zend.framework.applications\"相对=nofollow>性能优化ZF应用。

There is only one thing to do first if you think that a ZF-based app is slow. Measure it. Various tools exist that will take the profiling output of Xdebug to show you which parts are slowing down the process, then you can make some moves towards optimising those parts (such as a lighter weight initialisation, and/or some caching). One good resource is the the Zend Framework book at survivethedeepend.com, "performance optimisation for ZF Apps".

这篇关于框架比较开销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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