RE: [PHP] Efficient PHP

2002-05-28 Thread Richard Black

One thing that springs to mind was something Sterling Hughes said at the PHP
Conference in Frankfurt last year: If speed is an issue don't use objects,
cos at the moment the oo implementation isn't particularly efficient,
although it was something that would be addressed soon.

Actually, for all I know this may have been addressed already...

Richy
==
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: 28 May 2002 14:46
To: [EMAIL PROTECTED]
Subject: [PHP] Efficient PHP


Anyone know any good links on papers/articles/reports on creating efficient
PHP scripts (ie functions to stay away from, good practices, etc).  As a C
programmer, I am a nut on efficiency and speed and I have been trying to
read up on efficient PHP coding practices (besides obvious general coding
practices).  So can anyone offer any links or experiences?

ed


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski

Yeah I've heard that they've made improvements in the oo code but I usually 
stay away from them on principle.  Thanks for the reply,

Ed

At 02:54 PM 5/28/2002 +0100, Richard Black wrote:
One thing that springs to mind was something Sterling Hughes said at the PHP
Conference in Frankfurt last year: If speed is an issue don't use objects,
cos at the moment the oo implementation isn't particularly efficient,
although it was something that would be addressed soon.

Actually, for all I know this may have been addressed already...

Richy
==
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: [EMAIL PROTECTED]

-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: 28 May 2002 14:46
To: [EMAIL PROTECTED]
Subject: [PHP] Efficient PHP


Anyone know any good links on papers/articles/reports on creating efficient
PHP scripts (ie functions to stay away from, good practices, etc).  As a C
programmer, I am a nut on efficiency and speed and I have been trying to
read up on efficient PHP coding practices (besides obvious general coding
practices).  So can anyone offer any links or experiences?

ed


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Scott Hurring

 -Original Message-
 From: Ed Gorski [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 28, 2002 9:46 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Efficient PHP
 
 
 Anyone know any good links on papers/articles/reports on 
 creating efficient 
 PHP scripts (ie functions to stay away from, good practices, 
 etc).  As a C 
 programmer, I am a nut on efficiency and speed and I have 
 been trying to 
 read up on efficient PHP coding practices (besides obvious 
 general coding 
 practices).  So can anyone offer any links or experiences?
 
 ed 

Depends what kind of efficiency you are looking for, and
the type of application you're writing.

Personally, i've always taken the view that my time is
worth a lot more than the CPU's time (unless i'm writing
a speed-critical app, which is not very often :), so i
code for human efficiency and ease of maintenence, even
if the code is a little bit slower than heavily optimized
code.

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski

Well I work for a college with some 49,000+ students so my primary concern 
with all those users is efficient memory and processor usage.  You'd be 
surprised how easily a few ten's of thousands of users can bring an 
application server to it's knees if you have a bottleneck or two that you 
can avoid..

ed

At 12:32 PM 5/28/2002 -0400, Scott Hurring wrote:
  -Original Message-
  From: Ed Gorski [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 28, 2002 9:46 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Efficient PHP
 
 
  Anyone know any good links on papers/articles/reports on
  creating efficient
  PHP scripts (ie functions to stay away from, good practices,
  etc).  As a C
  programmer, I am a nut on efficiency and speed and I have
  been trying to
  read up on efficient PHP coding practices (besides obvious
  general coding
  practices).  So can anyone offer any links or experiences?
 
  ed

Depends what kind of efficiency you are looking for, and
the type of application you're writing.

Personally, i've always taken the view that my time is
worth a lot more than the CPU's time (unless i'm writing
a speed-critical app, which is not very often :), so i
code for human efficiency and ease of maintenence, even
if the code is a little bit slower than heavily optimized
code.

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread SP

Here's an article you might want to read
http://phplens.com/lens/php-book/optimizing-debugg
ing-php.php


-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: May 28, 2002 9:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Efficient PHP


Anyone know any good links on
papers/articles/reports on creating efficient
PHP scripts (ie functions to stay away from, good
practices, etc).  As a C
programmer, I am a nut on efficiency and speed and
I have been trying to
read up on efficient PHP coding practices (besides
obvious general coding
practices).  So can anyone offer any links or
experiences?

ed


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Miguel Cruz

But I wouldn't bet my children on advice found there. I just glanced at it
quickly but it was riddled with errors large and small.

miguel

On Tue, 28 May 2002, SP wrote:
 Here's an article you might want to read
 http://phplens.com/lens/php-book/optimizing-debugging-php.php
 
 
 -Original Message-
 From: Ed Gorski [mailto:[EMAIL PROTECTED]]
 Sent: May 28, 2002 9:46 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Efficient PHP
 
 
 Anyone know any good links on
 papers/articles/reports on creating efficient
 PHP scripts (ie functions to stay away from, good
 practices, etc).  As a C
 programmer, I am a nut on efficiency and speed and
 I have been trying to
 read up on efficient PHP coding practices (besides
 obvious general coding
 practices).  So can anyone offer any links or
 experiences?
 
 ed
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit:
 http://www.php.net/unsub.php
 
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Miguel Cruz

Though on further examination the tweaks section at the end seems good and 
solid. I'd only gotten to the OS portion when I barked out my complaint.

miguel

On Tue, 28 May 2002, Miguel Cruz wrote:
 But I wouldn't bet my children on advice found there. I just glanced at it
 quickly but it was riddled with errors large and small.
 
 miguel
 
 On Tue, 28 May 2002, SP wrote:
  Here's an article you might want to read
  http://phplens.com/lens/php-book/optimizing-debugging-php.php
  
  
  -Original Message-
  From: Ed Gorski [mailto:[EMAIL PROTECTED]]
  Sent: May 28, 2002 9:46 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Efficient PHP
  
  
  Anyone know any good links on
  papers/articles/reports on creating efficient
  PHP scripts (ie functions to stay away from, good
  practices, etc).  As a C
  programmer, I am a nut on efficiency and speed and
  I have been trying to
  read up on efficient PHP coding practices (besides
  obvious general coding
  practices).  So can anyone offer any links or
  experiences?
  
  ed
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
  http://www.php.net/unsub.php
  
  
  
  
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Efficient PHP

2002-05-28 Thread Ed Gorski

Yeah I saw thatbut it did make some good pointsthanks SP.

ed

At 02:27 PM 5/28/2002 -0500, Miguel Cruz wrote:
But I wouldn't bet my children on advice found there. I just glanced at it
quickly but it was riddled with errors large and small.

miguel

On Tue, 28 May 2002, SP wrote:
  Here's an article you might want to read
  http://phplens.com/lens/php-book/optimizing-debugging-php.php
 
 
  -Original Message-
  From: Ed Gorski [mailto:[EMAIL PROTECTED]]
  Sent: May 28, 2002 9:46 AM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Efficient PHP
 
 
  Anyone know any good links on
  papers/articles/reports on creating efficient
  PHP scripts (ie functions to stay away from, good
  practices, etc).  As a C
  programmer, I am a nut on efficiency and speed and
  I have been trying to
  read up on efficient PHP coding practices (besides
  obvious general coding
  practices).  So can anyone offer any links or
  experiences?
 
  ed
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit:
  http://www.php.net/unsub.php
 
 
 
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php