Re: Including PHP scripts on same server [message #171915 is a reply to message #171913] |
Fri, 21 January 2011 02:27 |
jwcarlton
Messages: 76 Registered: December 2010
Karma:
|
Member |
|
|
>> 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.
The CPU is rarely under strain, actually. I have a Quad Intel Xeon CPU
3.20GHz, and rarely have a load that's high enough to be noticed. My
bottleneck seems to be RAM; I just upgraded to 4GB, and will need to
upgrade to 8GB within the next few weeks.
I'm also regularly tweaking the server, due to the number of
processes. My average this week has been over 500 processes, with a
peak of over 1100. I've never professed to know a lot about the server
backend, and I was concerned that having 5 includes would turn in to 5
processes per page load.
> 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.
A second server is on my list, but that's a big expense so I'm trying
to push it off as long as I can with code and server config tweaks.
When I rebuild next year, maybe I'll make a focus on working in C. It
doesn't seem to be too different from Perl, anyway, and I coded in
Perl for years before ever touching PHP.
|
|
|