使用 PHC 或 HipHop 进行 mysql 查询可以提高性能吗?
我对 HipHop 或 PHC 不太了解,但我确实知道它将 PHP 代码编译成更高效的 C++ 代码,我也知道,很可能我不需要它,但是 phpfog,一个基于云的 php 应用程序主机,提供使用或者的选项,所以,我的问题是,基本上我的 php 代码唯一包含的是 mysqli 准备好的语句,还有一些其他功能,但除此之外没有太多,但我什至可以使用这样的编译器,性能会有所提高吗?
I don't know too much about HipHop or PHC, but i do know that it compiles PHP code into more efficient C++ code, I also know, that most likely i do not need it, but, phpfog, a cloud based php app host, offers the option of using either or, so, my questions is, basically the only thing my php code consists of is mysqli prepared statements, there are a couple of other functions, but not much beyond that, but could i even use such a compiler, and would there be any performance increase?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HipHop 和 PHC 是 PHP 特有的;他们对 MySQL 不做任何事情。所以,不,它们不会影响 MySQL 的性能。
HipHop and PHC are specific to PHP; they do nothing with MySQL stuff. So, no, they won't affect MySQL performance.
性能工作是关于测量的——测量性能,设定目标,如果您当前没有达到目标,那么您可以在非生产环境中的相同硬件上分析您的应用程序。
使用 hiphop 等似乎不太可能提高您的查询性能。
因此,请确定
通常,数据库显得缓慢是因为延迟,而不是查询速度。衡量一切,不做任何假设。
Performance work is about measurement - measure performance, set goals, if you are not currently meeting them, then you profile your application in a non-production enviroment, on identical hardware.
It seems highly unlikely that using hiphop etc, would improve your query performance.
So decide
Often, databases appear slow because of latency, not the speed of queries. Measure everything, assume nothing.