Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46889 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59177 invoked from network); 26 Jan 2010 19:15:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2010 19:15:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=iamstever@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=iamstever@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.222.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iamstever@gmail.com X-Host-Fingerprint: 209.85.222.178 mail-pz0-f178.google.com Received: from [209.85.222.178] ([209.85.222.178:52620] helo=mail-pz0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/F4-32076-84F3F5B4 for ; Tue, 26 Jan 2010 14:15:20 -0500 Received: by pzk8 with SMTP id 8so1861045pzk.29 for ; Tue, 26 Jan 2010 11:15:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=pTZ/mxZu7i0eXVBdSFUDnhPgtecr/dXdoqiJoSq7FqM=; b=jwPOxcweOc0wgBvZ08nE1clqFae2Gk3kRlfj7yURP8axCbjaRlWxlSGppgRScMuxjF WnZJIKufxQkSlHY9H3r690reyULx7ZUpMUmj24Imp/McgQhR6s6b6tH4B6lcseHB+OXs pYqAhe0bfmNgNsDR8UeVVS8VSBDbfl/50Ryvc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=jNnFuRgUVhgIJJTb8NiL48h6dhT7At/M8HQ3vHSi5S2aslih8Ts0QbTAKpTY+7ePPx WkTHUsH2/dODiv285hcySTZxdexhKdE5R/c4sxjJUBC0HnEj8aGeGKD/QZS4eWpKN9hf 9nt5ZDvqLKwy6CiwzOV8IdiJjw072dO+Lyt9A= MIME-Version: 1.0 Received: by 10.114.45.10 with SMTP id s10mr1565778was.76.1264533317370; Tue, 26 Jan 2010 11:15:17 -0800 (PST) Date: Tue, 26 Jan 2010 11:15:17 -0800 Message-ID: <57792e851001261115n7a5d2b3fs51c16e0293685c09@mail.gmail.com> To: Rasmus Lerdorf Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] About optimization -- What every programmer should know about memory From: iamstever@gmail.com (steve) Just as a reference point should someone come across this thread at a later date, and are interested in how memory usage changes performance, this was one of the articles I found that does a decent job, somewhat dated: What every programmer should know about memory http://lwn.net/Articles/250967/ You can look at the part about what programmers can do: http://lwn.net/Articles/255364/ And don't forget about the tools like valgrind and perfctr. Also oprofile, pagein, pfmon, callgrind. iam On Mon, Jan 25, 2010 at 4:59 PM, steve wrote: >> This isn't about server costs. =A0It is about choosing the right tool fo= r >> the right part of the job. =A0A Javascript library for the client-side >> frontend, PHP for the server-side frontend, C/C++ for your middle-layer >> and an appropriate datastore behind it all and you can build amazing >> things with PHP. =A0The largest destinations on the Web today are writte= n >> exactly like this. > > This is a tremendous insight. No where near my experience. (Neither is > cheap hosting for individuals). Faster PHP means smaller webfarm, and > if you pay for that webfarm, then these things matter. At any rate, > thanks for the long description. And I do notice the nice tone in > contrast to mine that day. Sigh... > >> All I can say on this is, send some patches to the list. =A0PHP improves= through code. > > True, true. But I remember a history of push back to such things, and > even if now that is no longer the case, the price of political > engagement is too high (that is, just explaining the stuff, etc). > We're at the point of migrating away (in small tiny steps) anyhow, but > I hope others that have experience and extra manpower speak up. There > are some interesting internal forks of php out there that are cleaner > and faster than what we could contribute anyhow. > >> It seems that you did not look closely to the improvements made to PHP 5= .3. > > Sadly, I'm not sure 5.3 is in the cards for this year, and the stock > build wouldn't do. Needs work on method dispatch. > > iamstever >