|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
32 + 49 = ?
Subscribe to this entry?

 [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-2019 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 07:01:26 2019 UTC