[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /memcache memcache.c
From: "Mikael Johansson" <mikl () php ! net>
Date: 2006-04-23 19:35:26
Message-ID: cvsmikl1145820926 () cvsserver
[Download RAW message or body]
mikl Sun Apr 23 19:35:26 2006 UTC
Modified files:
/pecl/memcache memcache.c
Log:
Added "memcache.chunk_size" ini directive to circumvent strange low performance \
behaviour when stream chunk size <= ~16kb, eg. the default (default 8kb)
http://cvs.php.net/viewcvs.cgi/pecl/memcache/memcache.c?r1=1.43&r2=1.44&diff_format=u
Index: pecl/memcache/memcache.c
diff -u pecl/memcache/memcache.c:1.43 pecl/memcache/memcache.c:1.44
--- pecl/memcache/memcache.c:1.43 Thu Apr 6 21:58:08 2006
+++ pecl/memcache/memcache.c Sun Apr 23 19:35:26 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: memcache.c,v 1.43 2006/04/06 21:58:08 tony2001 Exp $ */
+/* $Id: memcache.c,v 1.44 2006/04/23 19:35:26 mikl Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -122,6 +122,7 @@
PHP_INI_BEGIN()
PHP_INI_ENTRY("memcache.allow_failover", "1", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("memcache.default_port", "11211", PHP_INI_ALL, NULL)
+ PHP_INI_ENTRY("memcache.chunk_size", "8192", PHP_INI_ALL, NULL)
PHP_INI_END()
/* }}} */
@@ -254,7 +255,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "memcache support", "enabled");
php_info_print_table_row(2, "Active persistent connections", buf);
- php_info_print_table_row(2, "Revision", "$Revision: 1.43 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.44 $");
php_info_print_table_end();
}
/* }}} */
@@ -566,6 +567,7 @@
php_stream_auto_cleanup(mmc->stream);
php_stream_set_option(mmc->stream, PHP_STREAM_OPTION_READ_TIMEOUT, 0, &tv);
php_stream_set_option(mmc->stream, PHP_STREAM_OPTION_WRITE_BUFFER, \
PHP_STREAM_BUFFER_NONE, NULL); + php_stream_set_chunk_size(mmc->stream, \
INI_INT("memcache.chunk_size"));
mmc->status = MMC_STATUS_CONNECTED;
return 1;
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic