Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45957 Return-Path: <0xcafefeed@gmail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37278 invoked from network); 5 Nov 2009 19:29:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Nov 2009 19:29:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=0xcafefeed@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=0xcafefeed@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 0xcafefeed@gmail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:48682] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/45-08268-1B723FA4 for ; Thu, 05 Nov 2009 14:29:54 -0500 Received: by bwz5 with SMTP id 5so377818bwz.23 for ; Thu, 05 Nov 2009 11:29:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=t7eZzkK2HYldntXN+DqAUXWR9qnrZiA/EymJ0elKAzE=; b=SSPV5avgDngFKisxOxc1BwnCsqM0OiQc3brMfT+qAnEHbsF5bdFpis+H1dFi53CL5C xdDvOaaxVadudZ0MKJ9tC3LUAiWVmFr72gb7YlfrGsN35Afdh+LKfxlwy7Vrouxv52Ke 3Tf0W4BDrKAzIjPj38yggLbojMU28amI4lxos= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=dyCczA89EG7vbW/FUyfImSkW3kXiiESUORBWgHLr/lxsrah7CydCWPnIw/2kb+LrMJ OqZiksBLcgyogoUWBxVqmxlpIUMtODst0aMESL8qPfiGZZdm+6Vu2fhole0P3RfID/Wo 2QZO1javK1nW5or0a2lYeZOCv576C0peqZE5s= MIME-Version: 1.0 Received: by 10.204.16.203 with SMTP id p11mr3359300bka.185.1257449390321; Thu, 05 Nov 2009 11:29:50 -0800 (PST) In-Reply-To: References: <4AF3206D.8050606@oracle.com> Date: Thu, 5 Nov 2009 11:29:50 -0800 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro From: 0xcafefeed@gmail.com (mm w) so should be a UUID rather than a user defined int you cannot avoid collision with your system, it's a dangerous way to go. Best, On Thu, Nov 5, 2009 at 11:20 AM, Arvind Srinivasan wrote= : >> Does the GLOBALS_ID_BASE idea work? =C2=A0In >> "ts_allocate_reserved_id(GLOBALS_ID_BASE+1...)" each extension would >> anyway need to reserve an increment to avoid clashes. =C2=A0Also, why is > > I didn't really try using this. When I added it, I thought it might be > useful for modules that live outside the PHP source tree. They could > then define their constants using > #define FOO_ID (GLOBALS_ID_BASE + 3) > rather than hardcoding 33. As you point out, they would still need to > reserve an increment. > >> GLOBALS_ID_BASE 30 when the largest reserved value is 18? =C2=A0Maybe I'= m >> missing something. >> > I reserved IDs for the subsystems I thought were core. I was sure > there'd be others that I'd missed and so I left space for more. > > >> Would there be significant memory space or locality issues if one ID >> per extension in the PHP source bundle was reserved upfront, even if >> those extensions were never enabled? >> > > I'll run some tests and see what impact this has. > > Arvi > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >