Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:42725 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62242 invoked from network); 20 Jan 2009 12:41:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2009 12:41:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.21 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.218.21 mail-bw0-f21.google.com Received: from [209.85.218.21] ([209.85.218.21:36332] helo=mail-bw0-f21.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/B0-57672-396C5794 for ; Tue, 20 Jan 2009 07:41:56 -0500 Received: by bwz14 with SMTP id 14so9731989bwz.23 for ; Tue, 20 Jan 2009 04:41:51 -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:cc:content-type :content-transfer-encoding; bh=5Ns4r0clXSZ+ebEvtBporqhFvPCauWxSNpbe6CvXyjY=; b=SQN5XbRLjggkXFwXrIynwGtFVeN0y4NHoy7vESPIxwrXSTOK/MdsAB3hN08jxcyBsI viqu05+JV/RTwBlP0CvZ50zGFzMhmPFGhkVUde8NSZTsQOhmA0b7EXr3ZH9Ar+Uk4ZP0 9G3XyUE/podU3pg9SG+5tMfhtTHvjN5BA3Jqs= 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 :cc:content-type:content-transfer-encoding; b=FQCw+dW7/uEcNVXSadPwm9n+KJYSzy1OPjgVQYoyP77u83a5H/HCY1NQwJ4sUsZdg8 XdpEnOxbFLyVVAmo6sLLn27ySPt94nAKyyv3KrWjeqYFL7jYuM240rfRb0MjYlKoybni rZpPoON0ZLA2tGdcDIgUHG2Z1bLZBPtFVfo/o= MIME-Version: 1.0 Received: by 10.181.144.11 with SMTP id w11mr2475158bkn.81.1232455311415; Tue, 20 Jan 2009 04:41:51 -0800 (PST) In-Reply-To: References: <1229538590.4955.15.camel@localhost> <28434894.20081217221911@marcus-boerger.de> Date: Tue, 20 Jan 2009 13:41:51 +0100 Message-ID: <7f3ed2c30901200441i144e4ddasef7ac57b3e5106eb@mail.gmail.com> To: Etienne Kneuss Cc: "Stan Vassilev | FM" , internals Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New function proposal: spl_object_id From: hannes.magnusson@gmail.com (Hannes Magnusson) On Tue, Jan 20, 2009 at 13:26, Etienne Kneuss wrote: > > Could you please provide an example, with code, in which this function > would be necessary ? (i.e. where you can't use SplObjeccctStorage) Why? As far as i understand, the issue is that spl_object_hash() is slow and people want a faster alternatives. Although the initial reason for the faster alternative was to do maintain some classmap for a "random" PHP project, this has nothing to do with the fact spl_object_hash() is slow, especially compared to the proposed spl_object_id() function. Now, your "workarounds" using SplObjectStorage may work for the previous mentioned usecases - but how the frick is anyone supposed know to know about the wonders of SplObjectStorage? The doxygen is very confusing and definetly does not replace real documentation - plus it doesn't mention the things you are referring too (object => data map) or any of the other 5.3 features. -Hannes