|
Posted by Kim Andrι Akerψ on 11/24/03 11:28
marco.avidano@gmail.com wrote:
> I'm asking: for the PHP parser, it's better to create one large file
> with all the code inside or a lot of small files?
> Can a large file slow down the execution of the script?
One large file doesn't necessarily slow down the execution of the
script, that comes all down to what the code inside it does.
However, a lot of smaller files does have the advantage that the whole
solution is easier to maintain, and you're able to re-use code in other
scripts without having to insert the same code segment inside every
main script.
Also, uploading a large script creates downtime in the time period
you're uploading the script, depending on the file size of the single
script and your own upload speed.
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|