Re: Including PHP scripts on same server
- From: jwcarlton <jwcarlton@xxxxxxxxx>
- Date: Thu, 20 Jan 2011 18:27:00 -0800 (PST)
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.
.
- Follow-Ups:
- Re: Including PHP scripts on same server
- From: The Natural Philosopher
- Re: Including PHP scripts on same server
- References:
- Including PHP scripts on same server
- From: jwcarlton
- Re: Including PHP scripts on same server
- From: Captain Paralytic
- Re: Including PHP scripts on same server
- From: jwcarlton
- Re: Including PHP scripts on same server
- From: Captain Paralytic
- Re: Including PHP scripts on same server
- From: jwcarlton
- Re: Including PHP scripts on same server
- From: Jerry Stuckle
- Including PHP scripts on same server
- Prev by Date: Re: Including PHP scripts on same server
- Next by Date: Re: Including PHP scripts on same server
- Previous by thread: Re: Including PHP scripts on same server
- Next by thread: Re: Including PHP scripts on same server
- Index(es):
Relevant Pages
|