RE: [PEAR-DEV] Package proposal: Mail_Mime (alternative)

From: Date: Fri, 15 Aug 2003 14:18:05 +0000
Subject: RE: [PEAR-DEV] Package proposal: Mail_Mime (alternative)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19820@lists.php.net to get a copy of this message
> From: Heino H. Gehlsen [mailto:heino@gehlsen.dk] > Sent: Friday, August 15, 2003 4:12 PM > > > The way you were explaing the changes the performance > > would even be better in your package (correct me if I misunderstood > > you?). > > Well, I haven't done any benchmark testing... > > Since it's written in PHP instead of within PHP, I believe the performance > can never be 'even be better', but in the hope of improvements I have done > a > lot of parsing by reference internally. Oh bad move. Pass by reference is slower in PHP4. PHP4 has reference counting which prevent copies from being made if the variable is not actually modified. $foo = 'foo'; ('foo' in memory, ref counter 1) $foo = $bar; ('foo' in memory, ref counter 2) $bar = 'bar' ('foo' and 'bar' in memory, each with ref counter 1) regards, Lukas

« previous php.pear.dev (#19820) next »