Making use of C++ to speed up PHP

前端 未结 7 751
故里飘歌
故里飘歌 2020-12-30 06:16

I saw this post on Sitepoint quoting a statement by Rasmus Lerdorf which goes (according to Sitepoint) as follows:

How can you make PHP fast? Well, yo

7条回答
  •  时光说笑
    2020-12-30 06:50

    Don't even bother. PHP is slow... You may create a mixture of C++ and PHP but you'll need to do lots of profiling to understand what is slow. And this is mostly... PHP.

    See following:

    • C++ vs PHP Benchmarks for real web software
    • Is Data Base the Bottle Neck of Web Service? (not really... or why wikimedia has so many servers)
    • Slashdot article about Facebook (or how many resources PHP wastes)

    Just write in C++ in first place. It is as simple as writing in PHP with modern C++ web framework and good knowledge in C++.

    Where to start:

    • CppCMS - scalable MVC framework oriented for performance.
    • Wt - framework that mimics Qt for web (not sure how it scales well).

提交回复
热议问题