Re: Re: 5.3.9, Hash DoS, release
| From: | Xinchen Hui | Date: | Mon, 09 Jan 2012 17:22:10 +0000 |
| Subject: | Re: Re: 5.3.9, Hash DoS, release | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57309@lists.php.net to get a copy of this message | ||
Sent from my iPhone
在 2012-1-10,1:18,Xinchen Hui <laruence@gmail.com> 写道:
> Sent from my iPhone
>
> 在 2012-1-10,1:14,Rasmus Lerdorf <rasmus@php.net> 写道:
>
>> 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 ! = Large list
>
> An array can have million elements withou exceed the limit ion of max
> length of list.
>
> Thanks
And sorry I can not do it now ,since it's really later here now and I
have getup early tomorrow to work.
So anyone who have time can try to implement it, just remember also do
limit in resize hash logic.
Thanks very much.
>>
>> -Rasmus