Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60633 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46786 invoked from network); 21 May 2012 19:25:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2012 19:25:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=tom@punkave.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tom@punkave.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain punkave.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:42200] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/65-16352-6C69ABF4 for ; Mon, 21 May 2012 15:25:59 -0400 Received: by yenm2 with SMTP id m2so5283590yen.29 for ; Mon, 21 May 2012 12:25:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding:x-gm-message-state; bh=hJVoSuHCss26DfD5a70k7b1E8Ei/L0b3etzWovcnYWw=; b=NVjcp8RkwVpNCGsNqYuWPTGY6+xRq9q/MbR05b5tf8K9/zrv9eJvg85ULBxSMqXjzi 06W0XUFB6qUaBVT5p/7ITLM5nGNxPiePSHimE+OCuq3kLynytFONJYppYQQYFnOS9+fH 9J3zAcK5Y7gw6wxqdizNQEC5MBO1/zcaITMM5DUlzPCjamfN6wRszYaPVug2s5bFTMvG H9J8SsBYpj+rfcNGAjjk01ixAVfMu+A6ZzBBx0riaw0Zo5pQvb7c0IQ5t5gVetbf4Nu9 pmUsffzRPUWiD6z+YAJ/Lox1co6v44rzZAOXjMUL+HxinyNf+ZGIlYTZBPRTLVlrHz6c OhIA== MIME-Version: 1.0 Received: by 10.236.78.227 with SMTP id g63mr23590437yhe.87.1337628330614; Mon, 21 May 2012 12:25:30 -0700 (PDT) Received: by 10.100.109.13 with HTTP; Mon, 21 May 2012 12:25:30 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 May 2012 15:25:30 -0400 Message-ID: Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQnNuW3DaRrfVIOg2QwbPDOEJQYFfL+FXZTHxvbWvRYE59xaEMbqTN7JXM0Kz1bOGqdhl9b8 Subject: Re: [PHP-DEV] memory usage ouchy From: tom@punkave.com (Tom Boutell) Thanks for clarifying that. Sounds like a huge win. On Mon, May 21, 2012 at 3:13 PM, Gustavo Lopes wro= te: > On Mon, 21 May 2012 20:47:51 +0200, Rasmus Schultz > wrote: > >> I just realized something that never occurred to me before - every >> property is actually stored as a hash. >> >> This test-script will demonstrate: >> >> =A0[snip] > > > The test-script contains no information about the version of PHP you're > using. Starting with PHP 5.4, the properties hash table is only created i= f > you're storing dynamic properties (i.e. assigning undeclared properties) = or > if it otherwise requested. Otherwise, they're stored in an array. > > -- > Gustavo Lopes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com