Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57313 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31185 invoked from network); 10 Jan 2012 01:28:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2012 01:28:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:49073] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/40-27438-A349B0F4 for ; Mon, 09 Jan 2012 20:28:27 -0500 Received: by vbbfd1 with SMTP id fd1so3316365vbb.29 for ; Mon, 09 Jan 2012 17:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=FEGHFMcOXQSR/k8W417lkX6mswxe6nhO1DX/3syFx4U=; b=D+MLcbP1IgP9MkYMl8qCeGC3z5iCIKyVeIuTH0wmdqVW4Fu9KkaTpe664VHP64ufN8 maG9/5uwEYc5jC+D/xlBTwXYEJQ4FDZoJk9pbrspYUZnK5En9qpb+Q0LEePE4h1xJQbf U2bqpfrYwikRYA7jtCfVs8CrxpSeEV+OwXIf8= Received: by 10.52.110.2 with SMTP id hw2mr8793621vdb.18.1326158903673; Mon, 09 Jan 2012 17:28:23 -0800 (PST) References: <6268389813742875794@unknownmsgid> <6614496271356606712@unknownmsgid> <4F0B2091.7080301@php.net> <2146847516644307992@unknownmsgid> <30492447.6420.1326131516243.JavaMail.mobile-sync@iega11> In-Reply-To: <30492447.6420.1326131516243.JavaMail.mobile-sync@iega11> Mime-Version: 1.0 (1.0) Date: Tue, 10 Jan 2012 09:28:20 +0800 Message-ID: <-5963703608384739537@unknownmsgid> To: Rasmus Lerdorf Cc: Stefan Esser , Pierre Joye , PHP internals , =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Laruence Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: 5.3.9, Hash DoS, release From: laruence@gmail.com (Xinchen Hui) Sent from my iPhone =E5=9C=A8 2012-1-10=EF=BC=8C1:51=EF=BC=8CRasmus Lerdorf = =E5=86=99=E9=81=93=EF=BC=9A > On 01/09/2012 09:18 AM, Xinchen Hui wrote: >> Sent from my iPhone >> >> =E5=9C=A8 2012-1-10=EF=BC=8C1:14=EF=BC=8CRasmus Lerdorf = =E5=86=99=E9=81=93=EF=BC=9A >> >>> On 01/09/2012 08:50 AM, Xinchen Hui wrote: >>>> Hi: >>>> I am not sure whether you have understood my point. >>>> >>>> If an array have more than 1024 buckets in an same bucket >>>> list(same index), there must already be an performance issue. >>> >>> The problem is you really need to consider the source. There are many >>> places where people deal with huge datasets. If they assign it directly >>> they shouldn't hit any limits or we would need some sort of "large >>> array" hint which would be nasty. >> Rasmus: >> >> Large array ! =3D Large list >> >> An array can have million elements withou exceed the limit ion of max >> length of list. > > I understand the difference. But large arrays are obviously the ones > that are prone to hitting the collision limits. Yes, but don't you think this is at least better than restricting number of elements? :) Thanks > > -Rasmus