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 #171913 is a reply to message #171911] Fri, 21 January 2011 01:50 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/20/2011 4:46 PM, jwcarlton wrote:
>> 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 :-)
>

Good luck.

>
>> 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?
>

No, it does not. And BTW, it also takes up cpu cycles - which you seem
to be so overly concerned about.

>
>> 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?

If you're performance is that critical, you need to be looking at
hardware solutions - multiple servers, for instance.

And as Paul said - you should be using C instead of an interpreted language.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Fri Sep 20 17:38:45 GMT 2024

Total time taken to generate the page: 0.04649 seconds