|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Sun Feb 23 12:01:25 2020 UTC