Posted by Chung Leong on 09/28/05 07:57
windandwaves wrote:
> might try that... brilliant.
>
> one more question: if I add include_once("library/functions5.php") to a
> bunch of scripts (with a myriad of functions), does that add a lot of
> weight? I am adding these by default, because then I do not have to think
> which page needs then and which page does not.
It's unlikely to have a noticeable effect. The server can read and
parse the file far faster than it can transmit output data through the
network. Any overhead is through masked by the low throughput.
Scalability issues are usually caused by resource contentions as oppose
to cumulation of independent loads. Usually that resource is the
database. For example, while one request is writing to a table,
requests reading from the same table might need to wait for that
operation to finish before proceeding. Another common contention
problem in PHP involve session locking. Simultaneous requests from the
same user (e.g. from a frameset) could end up blocking each other if
each tries to open the user's session. Not really a scalability issue
but could be mistaken as one.
[Back to original message]
|