Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Phpster
On Jan 8, 2010, at 10:44 AM, Andrew Ballard wrote: On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings wrote: ... They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- Tacos? Bastien Sent from my iPod -- PHP General Mailing List (http:

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
Sorry forgot to mention that we used APC with apc.stat turned off which will give a little bit more performance gain, but it does mean flushing the cache on every code push (which is trivial). Ravi On Fri, Jan 8, 2010 at 11:30 AM, J Ravi Menon wrote: > Hi, > > A note on bytecode caching and inc

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread J Ravi Menon
Hi, A note on bytecode caching and include/include_once performance. A while ago when we were profiling our code, we did notice that file includes do take a noticeable percentage of overall overhead (enough for us to look into it more deep). We are using apc cache on a standard LAMP platform (linu

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
clanc...@cybec.com.au wrote: On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper http://itst.ne

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
Graham Cossey wrote: On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings wrote: They almost always make your shit run faster. I love your final statement Robert! A reply of good grammar and vocabulary summarised most succinctly. :) -- http://www.interjinn.com Application and Templating Frame

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Andrew Ballard
On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings wrote: > ... > They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Graham Cossey
On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings wrote: > > They almost always make your shit run faster. I love your final statement Robert! A reply of good grammar and vocabulary summarised most succinctly. -- Graham -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: >clanc...@cybec.com.au wrote: >> Thank you all for your comments. I did not know about bytecode caches. >> They're an >> interesting concept, but if I am interpreting the paper >> http://itst.net/654-php-on-fire-th

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Robert Cummings
clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper http://itst.net/654-php-on-fire-three-opcode-caches-compared correctly they only double the average speed of operation, which is

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Wed, 06 Jan 2010 23:20:26 -0500, kolb0...@umn.edu (Daniel Kolbo) wrote: >Daevid Vincent wrote: >> >> >>> -Original Message- >>> From: Al [mailto:n...@ridersite.org] >>> Sent: Wednesday, January 06, 2010 5:09 PM >>> To: p

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread clancy_1
On Wed, 6 Jan 2010 19:11:07 -0800, dae...@daevid.com ("Daevid Vincent") wrote: > > >> -Original Message- >> From: Al [mailto:n...@ridersite.org] >> Sent: Wednesday, January 06, 2010 5:09 PM >> To: php-general@lists.php.net >> Subject: [PHP

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Daniel Egeberg
On Thu, Jan 7, 2010 at 04:11, Daevid Vincent wrote: > I think it's a case by case basis. Generally File I/O is expensive, but > then again, as you say, having everything in a couple files is also > sub-optimal for organizing and keeping things modular. That is easily sorted out using automated bu

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Robert Cummings
Daniel Kolbo wrote: Daevid Vincent wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones? On 1/6/2010

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daniel Kolbo
Daevid Vincent wrote: > > >> -Original Message- >> From: Al [mailto:n...@ridersite.org] >> Sent: Wednesday, January 06, 2010 5:09 PM >> To: php-general@lists.php.net >> Subject: [PHP] Re: PHP programming strategy; lots of little >> include fi

RE: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Daevid Vincent
> -Original Message- > From: Al [mailto:n...@ridersite.org] > Sent: Wednesday, January 06, 2010 5:09 PM > To: php-general@lists.php.net > Subject: [PHP] Re: PHP programming strategy; lots of little > include files, or a few big ones? > > > &

[PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Al
On 1/6/2010 7:18 PM, clanc...@cybec.com.au wrote: I have a flexible program, which can do many different things according to the type of data it is fed. Ideally the flexibility is achieved by calling different functions, though when the functionality is ill-defined I sometimes just include b

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Eddie Drapkin
On Sun, Aug 9, 2009 at 6:33 PM, tedd wrote: > At 1:05 PM +0100 8/9/09, Ashley Sheridan wrote: >> >> On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: >> >>  > But, as it was said, IE's have problems with first-child rules. >>> >> >> How does IE8 fare with selectors in CSS? >> >> Thanks, >> Ash > > ted

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 1:05 PM +0100 8/9/09, Ashley Sheridan wrote: On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: > But, as it was said, IE's have problems with first-child rules. How does IE8 fare with selectors in CSS? Thanks, Ash tedd = clue-- or tedd < clue tedd -- --- http://sperling.com http

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Ashley Sheridan
On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: > At 10:54 AM +1000 8/9/09, Clancy wrote: > >On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: > > >Also, if you use first-child, it could be taken down to: > >> > >> > >> > >> Yanni Nx > >> Sally Riordan Sc

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 10:54 AM +1000 8/9/09, Clancy wrote: On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: >Also, if you use first-child, it could be taken down to: Yanni Nx Sally Riordan Scholarship, 2007- Except that line 2 is smaller than line 1. In my sche

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread Clancy
On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: >You don't need the width="210" height="300". For example, this works: > > > > Yanni Nx > Sally Riordan Scholarship, 2007- > I have read that if you omit the dimensions you will sometimes see the page

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread Ashley Sheridan
On Sat, 2009-08-08 at 07:53 -0400, tedd wrote: > At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: > > > > > > >> > >> > >> > >>Yanni Nx > >>Sally Riordan Scholarship, 2007- > >> > >> > >> > >> > >> (And the t

Re: [PHP] Re: PHP programming strategy

2009-08-08 Thread tedd
At 6:32 AM +0100 8/7/09, Ashley Sheridan wrote: > Yanni Nx Sally Riordan Scholarship, 2007- (And the thing that really astounds me about CSS is that they never thought of putting in constants. Instead o

Re: [PHP] Re: PHP programming strategy

2009-08-07 Thread Clancy
On Fri, 07 Aug 2009 06:32:48 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan) wrote: ... >> How, for example, could I otherwise achieved the following effect, which >> displays an image >> with a border slightly darker than the background, and with the title and >> subtitle inside >> the b

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Fri, 2009-08-07 at 11:06 +1000, Clancy wrote: > On Thu, 06 Aug 2009 08:28:32 +0100, a...@ashleysheridan.co.uk (Ashley > Sheridan) wrote: > > ... > >> >> Nested tables are the devils playthings! > >> > >> I must be the devil, then. I enjoy playing with them. And if they're > >> done rig

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Clancy
On Thu, 06 Aug 2009 08:28:32 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan) wrote: ... >> >> Nested tables are the devils playthings! >> >> I must be the devil, then. I enjoy playing with them. And if they're done >> right they >> seem to work on every system I have tried them on. Gr

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 12:05 +0200, Ralph Deffke wrote: > as it comes to this point I can recomment an O'reilly book "High Performance > Web Sites, essential knowledge for frontend engineers" > > if u read that book ur eyes will grow and u will not bother about php > comments, > > ralph > > > "A

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ralph Deffke
as it comes to this point I can recomment an O'reilly book "High Performance Web Sites, essential knowledge for frontend engineers" if u read that book ur eyes will grow and u will not bother about php comments, ralph "Ashley Sheridan" wrote in message news:1249543712.3358.104.ca...@localhost.

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 09:24 +1000, Clancy wrote: > On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) wrote: > > >On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan > >wrote: > >> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: > >>> Thank you to all of you who have commented on t

Re: [PHP] Re: PHP programming strategy

2009-08-05 Thread Clancy
On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) wrote: >On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan >wrote: >> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: >>> Thank you to all of you who have commented on this query. >>> >>> On the subject of comments, I feel that La

Re: [PHP] Re: PHP programming strategy

2009-08-05 Thread Bastien Koert
On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan wrote: > On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: >> Thank you to all of you who have commented on this query. >> >> On the subject of comments, I feel that Larry Garfield settled this query by >> pointing out >> that halving the size of a p

Re: [PHP] Re: PHP programming strategy

2009-08-05 Thread Ashley Sheridan
On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: > Thank you to all of you who have commented on this query. > > On the subject of comments, I feel that Larry Garfield settled this query by > pointing out > that halving the size of a particular document gave a barely noticeable > increase in sp

[PHP] Re: PHP programming strategy

2009-08-05 Thread Clancy
Thank you to all of you who have commented on this query. On the subject of comments, I feel that Larry Garfield settled this query by pointing out that halving the size of a particular document gave a barely noticeable increase in speed. Paul Foster pointed out the problem of maintenance, but

Re: [PHP] Re: PHP programming strategy

2009-08-03 Thread Michael A. Peters
Ollisso wrote: 4. If you have huge load, then it is much more efficient (and easier) to use other methods. For Example: install APC (http://fi2.php.net/apc ) It will cache all requests to your files and this will have huge impact on your performance. Much more than you can achieve by strippin

[PHP] Re: PHP programming strategy

2009-08-03 Thread Ollisso
On Sun, 02 Aug 2009 04:25:40 +0300, Clancy wrote: Is anyone here interested in discussing programming strategy, or or know of a discussion group which is interested in the subject? The sorts of questions I am interested in are: 1. I have a highly variable program which always shows the same