1
kaotik
Better coding practises, questions on files
  • 2006/10/25 13:49

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


In terms of server performance, which is better:
1) split code through several php files for easier reading.
2) try to contain similar code (functions and classes) into a reduced number of php files.

Does file count negativly impact server performance? Is it bad practice to use a lot of include and/or require?
Also, I've read that include_once has a bigger impact on server performance, so should it's use be limited to absolute musthave situations?

I'm asking because when at the early stage of module developement, I could easily break the code into smaller pieces spread out to several php files, or try to condense the page count.
I've also been reading through 2.3 on the SVN and see that Skalpa breaks up the code into small peices spread out through several pages.

Thanks

Login

Who's Online

452 user(s) are online (68 user(s) are browsing Support Forums)


Members: 0


Guests: 452


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits