Jump to content

Include Function


Truly

Recommended Posts

Hi guys, as the name says I have a question about the include function. If I have a page that is going to be over 1000 lines of code easily will seperating it into multiple files and referencing them using the include function increase the load time any substantial ammount or will it equal out because it has to grab the info from another file?

Link to comment
Share on other sites

I can't answer on the time part (I wouldn't think it would make much of a difference unless you made a file for each line), but would say to make some files to split the code to make it easier for you when you have to edit it.

Link to comment
Share on other sites

I doubt it would be a significant hit on performance. The thing to really look at is will this make maintenance and repurposing easier and/or possible. That might take a priority of any marginal performance issue you have. But, don't just break it up into include files for the sake of shortening it, then you gain nothing - make sure that what you chose to have includes for is for a purpose (i.e. navigation or web form)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...