cvs: pecl /apc apc_cache.c
| From: | Rasmus Lerdorf | Date: | Thu, 11 Mar 2004 18:01:31 +0000 |
| Subject: | cvs: pecl /apc apc_cache.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1068@lists.php.net to get a copy of this message | ||
rasmus Thu Mar 11 13:01:31 2004 EDT
Modified files:
/pecl/apc apc_cache.c
Log:
The documentation states that the default is 1000 for the num_files_hint
setting. That implies that the default is 1000 files, not that the
number of slots in the hash table is 1000. So to be consistent with the
documentation, create 2000 slots by default.
http://cvs.php.net/diff.php/pecl/apc/apc_cache.c?r1=3.53&r2=3.54&ty=u
Index: pecl/apc/apc_cache.c
diff -u pecl/apc/apc_cache.c:3.53 pecl/apc/apc_cache.c:3.54
--- pecl/apc/apc_cache.c:3.53 Sat Jul 19 20:07:02 2003
+++ pecl/apc/apc_cache.c Thu Mar 11 13:01:30 2004
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: apc_cache.c,v 3.53 2003/07/20 00:07:02 shane Exp $ */
+/* $Id: apc_cache.c,v 3.54 2004/03/11 18:01:30 rasmus Exp $ */
#include "apc_cache.h"
#include "apc_lock.h"
@@ -187,7 +187,7 @@
int num_slots;
int i;
- num_slots = size_hint > 0 ? size_hint*2 : 1000;
+ num_slots = size_hint > 0 ? size_hint*2 : 2000;
cache = (apc_cache_t*) apc_emalloc(sizeof(apc_cache_t));
cache_size = sizeof(header_t) + num_slots*sizeof(slot_t*);