Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32040 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75977 invoked by uid 1010); 4 Sep 2007 16:45:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75962 invoked from network); 4 Sep 2007 16:45:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Sep 2007 16:45:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=planetbeing@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=planetbeing@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.174 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: planetbeing@gmail.com X-Host-Fingerprint: 66.249.92.174 ug-out-1314.google.com Received: from [66.249.92.174] ([66.249.92.174:35784] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/5F-21414-9AB8DD64 for ; Tue, 04 Sep 2007 12:45:29 -0400 Received: by ug-out-1314.google.com with SMTP id a2so480964ugf for ; Tue, 04 Sep 2007 09:45:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=K5t59fd/j6Hy/MFtci+bDGQEmc3L58yHpfXXxofS2QWQZvUghO3rBR1OidqtglMg73Wyu/bg8lxJCYlL5TjNYQ4G9P0ck/PIhGjmCmAtSnOkU5Rt3f8NtIOMW7l36e+nIfPkS/9+BXp35++KIzL4v0BdxpTadwld3ILluKM2bAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Q1uVcjXDbEPd6SNwPeO80wnY5haVMNpLbYD53ZZe852Gaqj8e0GojNVxnCj/UgIx/19SNKG+woZWqLdBhXF7FAKpU7ebALApOv5tVhcHJBTzK3Js2R8PD7bAQIaja2SajMuINUWH/EWMsC+zZ4+E6QX36Jr5WebU6tLcXWS6NdQ= Received: by 10.78.188.10 with SMTP id l10mr4306293huf.1188924326068; Tue, 04 Sep 2007 09:45:26 -0700 (PDT) Received: by 10.78.135.16 with HTTP; Tue, 4 Sep 2007 09:45:26 -0700 (PDT) Message-ID: Date: Wed, 5 Sep 2007 00:45:26 +0800 To: "Nuno Lopes" Cc: internals@lists.php.net, andi@php.net, dmitry@php.net In-Reply-To: <20070904172420.2yftwh0cg000kw0s@w13.mail.sapo.pt> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070904162613.4qgfdddo7scw8o8w@w13.mail.sapo.pt> <20070904172420.2yftwh0cg000kw0s@w13.mail.sapo.pt> Subject: Re: Re: [PHP-DEV] Patch for macros for tracking refcount and is_ref From: planetbeing@gmail.com ("David Wang") > currently you only have one statement in each of those functions.. > anyway it's not critical to have static inline functions. I will need to have them (multiple statements) for the cycle collection code, and I don't think there are many situations involving changing the way reference counting is done where only one statement is sufficient. In any case, it's good future-proofing. > nops. The Zend engine redefines the inline keyword itself somewhere. Hmm. I did not know that. Where? A quick grep doesn't seem to show anything significant. And I do know (experimentally) that a vast number of supposed "inline" functions aren't actually inlined currently because the compiler decides it doesn't want to do it. It gave me a lot of problems when I was trying to optimize my gc code.