English 中文(简体)
PHP是否要求放慢这个地点?
原标题:Does require in PHP slow the site down?

我指的是,在档案中写出某种法典,然后向档案本身写出某种要求,比在档案中写法要慢? (哪一要求档案只需要吗?)

最佳回答

是的,除非你遇到问题,否则它会减缓,但无论如何不应如此。 这称为过早优化。 它坏处。 相反,用你的时间来做大事,并在你处置时使用所有工具。 如果一天时间过慢,你可以开始寻找瓶颈,加快速度,但直到那时,不会对此感到担忧。

问题回答

它将需要时间将档案输入,但只把它放在微不足道的位置上。

它微不足道。 但是,这并没有将法典减为合理数额。 除非你重新使用,否则会大大减缓规模大的_缩。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签