|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59588 Set Size strangeness
Submitted: 2011-01-23 22:53 UTC Modified: -
From: drowe at csnstores dot com Assigned:
Status: Open Package: memcached (PECL)
PHP Version: 5.3.2 OS: FreeBSD 8.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: drowe at csnstores dot com
New email:
PHP Version: OS:


 [2011-01-23 22:53 UTC] drowe at csnstores dot com
When attempting to narrow down some odd page speed issues, we noticed that it seems like the first object of a certain size threshold is slow, but all objects of that size or larger afterwards on a page are quick.

The attached code sample shows that when the a array is small, the q array takes ~90ms. When you increase the a array size it then becomes the slow get and the q is fast. 

The strangest part is that if first object is just big enough, then they are both fast??

Any help/insight on this would be greatly appreciated.

Environment is : 
FreeBSD 8.1
Lighttpd + spawn-fcgi
php : 5.3.5
pecl-memcached: 1.0.2

Reproduce code:
Link to code to reproduce:

Expected result:
Expected results is both gets fast in all three cases.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Aug 12 10:01:25 2020 UTC