Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84533 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3592 invoked from network); 11 Mar 2015 09:46:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2015 09:46:11 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@ludovicurbain.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=me@ludovicurbain.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ludovicurbain.com designates 178.33.45.10 as permitted sender) X-PHP-List-Original-Sender: me@ludovicurbain.com X-Host-Fingerprint: 178.33.45.10 18.mo5.mail-out.ovh.net Received: from [178.33.45.10] ([178.33.45.10:33497] helo=18.mo5.mail-out.ovh.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/02-26266-0EE00055 for ; Wed, 11 Mar 2015 04:46:09 -0500 Received: from mail616.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 77315FF8EA9 for ; Wed, 11 Mar 2015 10:46:00 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 11 Mar 2015 11:46:00 +0200 Received: from mail-qc0-f170.google.com (me@ludovicurbain.com@209.85.216.170) by ns0.ovh.net with SMTP; 11 Mar 2015 11:45:59 +0200 Received: by qcvx3 with SMTP id x3so8742938qcv.0 for ; Wed, 11 Mar 2015 02:45:57 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.238.87 with SMTP id j84mr48040055qhc.78.1426067157353; Wed, 11 Mar 2015 02:45:57 -0700 (PDT) Received: by 10.140.20.196 with HTTP; Wed, 11 Mar 2015 02:45:57 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Mar 2015 10:45:57 +0100 Message-ID: To: Camilo Sperberg Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1135c8b8570d590511002206 X-Ovh-Tracer-Id: 1069323438148654795 X-Ovh-Remote: 209.85.216.170 (mail-qc0-f170.google.com) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejledrieefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejledrieefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu Subject: Re: [PHP-DEV] Lists: a simple way to improve PHP performance From: me@ludovicurbain.com (Ludovic Urbain) --001a1135c8b8570d590511002206 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That's a good question, I never tried the SPL library. But if we're to stick to whatever information is readily available, it's not good enough, as Spl seems to be 15-30% faster when I'm looking for 10x faster - however I'm looking at a really specific portion of performance which would probably be list creation (I came across the performance issue in the benchmarks game in the binary tree program, could not come closer than 300x times C performance, all due to array() inefficiency). Still, it could make more sense to fix the SPL library than add yet another one. I will run benchmarks on it to figure out how much faster it really is, then come back to you on that one. Thanks. 2015-03-11 10:24 GMT+01:00 Camilo Sperberg : > Isn=E2=80=99t this already implemented in the SPL library? > http://php.net/manual/en/spl.datastructures.php > > -- > Met vriendelijke groet, > Camilo Sperberg > Sent with Airmail > > On 11 Mar 2015 at 10:15:11, Ludovic Urbain (me@ludovicurbain.com) wrote: > > Hello, > > > > > > I've been working with PHP for a while and it's always sad to see > array()'s > > performance being so terrible, in so many cases where a simple list wou= ld > > have done the trick without any slowdown. > > > > So why don't we add a basic list type to PHP ? There's nothing to lose, > > everything to gain, and it will have a fast creation time, unlike the > "php > > simple array" because it will just be a list. > > > > I can take care of the programming and testing by myself if necessary. > > > > > > Thanks for your time, > > > > > > > > Ludovic > > > > -- > > Ludovic Urbain > > www.kanpeki.be > > > > --=20 Ludovic Urbain www.kanpeki.be --001a1135c8b8570d590511002206--