PHP HipHop 与 PHP FastCGI

发布于 2024-10-19 13:22:29 字数 170 浏览 2 评论 0原文

我还没有对哪种 PHP 实现最好进行任何彻底的分析,而且我也没有在 Internet 上找到任何人。因此,如果有人能够指出每种语言相对于另一种语言的一些优点和缺陷,我将非常感激。哪一个编译速度最快?

后续问题:

所有编程语言(需要首先编译的语言)都同样快吗?

I haven't made any thorough analysis of which implementation of PHP is the best and I haven't found anyone either on the Internet. So, If someone out there just can point out some benefits and flaws regarding each language compared to the other, than I would really appreciate it. Which one compiles the fastest?

A follow up question:

Is all programming langauge(languauge that needs to be compiled first) equally fast?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我乃一代侩神 2024-10-26 13:22:29

好吧,我很抱歉这么说,但我觉得我必须这样做。

没有任何语言或编译器能让你的应用程序变得更快。它可以添加一些点,但 99% 的时间是程序员调整应用程序的工作,通过数小时的分析、测量、调整系统设置和其他东西来完成。

要达到这些问题变得重要的地步还有很长的路要走。
人们必须问像您这样的问题,然后才能回答以下其他问题:是什么导致您的应用程序运行缓慢 - 数据库守护程序?网络服务器负载?业务逻辑?硬件层有同样的问题:内存限制吗?中央处理器功率?硬盘传输速率?网络延迟?还有其他数千人。如果没有这样的背景,任何答案都不会对你有任何好处。

我想说这是一个相当幼稚的问题,“哪个很快”。这很浪漫等等。但在现实生活中,速度更快的是飞行员,而不是车辆。

Well I sorry to say that but I feel I must.

No language or compiler will make your application fast. It can add some points, but 99% of time it's programmer's job of tuning an application, being done by hours of profiling, measuring, tuning system settings and stuff.

It's awfully long way to come to the point where such matters would matter.
One have to ask such a question like yours only with having answers to other questions like these: what's causing your application to runs slow - database daemon? web-serer load? business logic? Same questions for hardware layer: is it memory limits ? CPU power? HDD transer rate? network latency? And thousands others. Without such a background no answer will do any good for you.

I'd say it's rather childish question, "which is fast". It's romantic and all that stuff. But in the real life, it's a pilot who is faster, not a vehicle.

濫情▎り 2024-10-26 13:22:29

HipHop 是由 Facebook 开发的,旨在提高其应用程序的性能。你可能知道;)
HipHop 绝对是非常快的,而且比 cgi 还要快。但也有一些小缺点,你必须避免一些功能。请参阅 sitepoint 上的这篇文章。
http://www.sitepoint.com/boost-php-performance-with-嘻哈音乐/

HipHop was developed by Facebook to boost the performance on their application. You might know it ;)
HipHop is definetly really fast and it is faster then cgi. But there some minor drwabacks, you have to avoid some functions. See this article on sitepoint.
http://www.sitepoint.com/boost-php-performance-with-hiphop/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文