FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Including PHP scripts on same server
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Including PHP scripts on same server [message #171911 is a reply to message #171906] Thu, 20 January 2011 21:46 Go to previous messageGo to previous message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma:
Member
> Why does it matter. If you're that concerned about speed of execution,
> why are you using php in the first place? You should code your site in
> C.

That's actually a very good question. If I were a better C programmer,
I probably would :-)


> And even if you had a single php file, think of all those newline
> characters that have to be read in. Better put everytihing on a single
> line.

Isn't that part of what Gzip compression does automatically? Buffers
out tabs, newlines, etc?


> Oh and don't have variable names that are longer than necessary, it
> all increases the time the file takes to be read, so just use single
> letters for all variable names.

I wasn't sure if that would have much of an impact, but I've already
been at that point ;-) I've also moved images into sprite images.
While the filesize is practically the same, it has cut down on the
number of connections per page load, which has had a noticeable
impact.

Don't think that the sarcasm was lost on me, but I've found that
saving microseconds per page really does have an impact. It's not
uncommon for this site to have over 1,000 processes per second, so I'm
constantly trying to make each process finish faster to prevent
processes from going into the queue.

Now that I've explained why it matters, do you think that including
several PHP files would have a discernible impact?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ElephantMark - a new simple tool for PHP documentation
Next Topic: hack
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 11:42:55 GMT 2024

Total time taken to generate the page: 0.06037 seconds