- 主题:python做网站的话现在效率有PHP好吗
Mod每次执行的代码多,你效率再高有什么用,框架每次都从那个index.php第一句代码到最后一句代码执行一遍,人家独立框架容器,服务启动以后,就跑在循环里,不用每次都去读配置、加载参数等等乱七八糟的东西。你比这些量性的东西意义不大。
【 在 myspam 的大作中提到: 】
: 出在最新的PHP7也不如PYTHON执行效率高吗?我看PHP官方说PHP7是PHP5.6的2倍性能
--
FROM 124.42.13.*
if you are a starter web dev just learn as many as you can, more than
a dozen languages out there can do the job.
to name a few:
nginx-lua
nodejs
jvm: java scala clojure
.net: c# f# vb.net
python ruby perl
erlang/elixir
all have developed reasonably complete ecosystem to support most of
web dev.
php was, is, and will be for decades a major part of internet business,
which, I think is enough for you to stick to before you enter administration.
as for apache vs nginx, use apache only when everything is php.
【 在 myspam (myspam) 的大作中提到: 】
: 听说PHP 7效率很好,和HIP HOP差不多了,但是比较喜欢python的语法格式,现在python做网站的话用NGINX和FASTCGI还是什么啊?效率有PHP 7好吗?
--
FROM 112.65.223.*
谢谢,那要是用APACHE的话用WORKER还是PERFORK啊?
【 在 XeCycle 的大作中提到: 】
: if you are a starter web dev just learn as many as you can, more than
: a dozen languages out there can do the job.
: to name a few:
: ...................
--
FROM 123.123.210.*
大哥刚才在看PHP7时看到这个:
Supported SAPI
cli
cgi
fpm
apache (FastCGI and FPM might be significantly faster if mod_php is built as PIC)
apache2handler
上面说的built as PIC里的PIC是什么东西啊?另外apache2handler是不是就是PHP_MOD啊?
【 在 XeCycle 的大作中提到: 】
: if you are a starter web dev just learn as many as you can, more than
: a dozen languages out there can do the job.
: to name a few:
: ...................
--
修改:myspam FROM 123.123.210.*
FROM 123.123.210.*
大哥那你的意思是PHP7的执行效率也不如PYTHON的了? 能简单解释一下你说的PYTHON的独立框架容器吗?
【 在 dhcn 的大作中提到: 】
: Mod每次执行的代码多,你效率再高有什么用,框架每次都从那个index.php第一句代码到最后一句代码执行一遍,人家独立框架容器,服务启动以后,就跑在循环里,不用每次都去读配置、加载参数等等乱七八糟的东西。你比这些量性的东西意义不大。
--
FROM 123.123.210.*
benchmark
【 在 myspam (myspam) 的大作中提到: 】
: 谢谢,那要是用APACHE的话用WORKER还是PERFORK啊?
--
FROM 112.65.223.*
position independent code
required for shared objects, and is the default on many distros
【 在 myspam (myspam) 的大作中提到: 】
: 大哥刚才在看PHP7时看到这个:
: Supported SAPI
: cli
: ...................
--
FROM 112.65.223.*
谢谢,那PHP_MOD除了PIC的还有什么的啊?
【 在 XeCycle 的大作中提到: 】
: position independent code
: required for shared objects, and is the default on many distros
:
--
FROM 123.123.210.*
你去看Java的应用容器和HttpServer两层部署机制就明白了。
【 在 myspam 的大作中提到: 】
: 大哥那你的意思是PHP7的执行效率也不如PYTHON的了? 能简单解释一下你说的PYTHON的独立框架容器吗?
--
FROM 124.42.13.*
我只能说,django很慢很慢。
http://www.infoq.com/news/2014/05/benchmark-web-framework
http://www.infoq.com/news/2015/04/web-frameworks-benchmark-2015
【 在 myspam (myspam) 的大作中提到: 】
: 大哥那你的意思是PHP7的执行效率也不如PYTHON的了? 能简单解释一下你说的PYTHON的独立框架容器吗?
--
FROM 61.135.169.*