简单、快速且开源的PHP框架,以C扩展形式冻结。
Simple, fast and open-source PHP framework frozen in C-extension

原始链接: https://www.iceframework.org/

PHP的一个主要缺点是,在每次请求时,所有文件都会从硬盘读取,转换为字节码,然后执行。而Ice整个框架已经加载到内存中,因此不需要处理整个框架文件集。这意味着在扩展时,你需要比PHP更少几倍的服务器来支持相同的流量。请查看PHP框架的基准测试。

一个名为Ice Framework (iceframework.org) 的新型、简单、快速且开源的PHP框架最近被提交到了Hacker News。它被构建为C扩展,旨在追求速度,但引发了关于其安全性和成熟度的讨论。 评论者指出它与现有项目存在命名冲突,并对基于C的内存管理复杂性可能导致的安全漏洞表示担忧,尤其是在潜在用户群体较小的情况下。 还有人质疑PHP中是否需要*另一个*模板引擎,注意到Ice Framework包含Twig。 最后,一位用户批评缺乏全面的基准测试数据,质疑将其与Laravel等功能更全面的成熟框架进行比较的有效性。 这次讨论凸显了PHP框架开发中性能、安全性和成熟度之间的权衡。
相关文章

原文

One major drawback for PHP is that on every request, all files are read from the hard drive, translated into bytecode, and then executed.

With Ice the whole framework already is in RAM, so the whole set of framework files don't need to process. That means that when scaling, you need few times fewer servers to support the same traffic. Check the PHP framework benchmark.

联系我们 contact @ memedata.com