|  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: 2021-06-09 11:26 UTC
From: drowe at csnstores dot com Assigned: cmb (profile)
Status: Closed 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


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-09 11:26 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-06-09 11:26 UTC]
The memcached bug tracker is now on Github[1].  If this is still
an issue with the current memcached version, please report there.

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 20:01:30 2024 UTC