From 5d3ea92ee9cf77ba914282a592b48115159bfe9b Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Tue, 16 Jun 2009 09:15:09 +0000 Subject: Hardwire function call instead of using callbacks. We don't actually need callbacks, it was done for making 2 functions static, not to pollute the global functions space but that had its price of 8 bytes overheat per allocation, which is just too much. Also making the app member 32b instead of 64b, which should save additional 4 byte, to the total of 12 byte per allocation of a row buffer. --- ext/mysqlnd/mysqlnd_structs.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/mysqlnd/mysqlnd_structs.h') diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h index d9f9dfcdb5..0c80a5316c 100644 --- a/ext/mysqlnd/mysqlnd_structs.h +++ b/ext/mysqlnd/mysqlnd_structs.h @@ -45,12 +45,10 @@ struct st_mysqlnd_memory_pool struct st_mysqlnd_memory_pool_chunk { - uint64_t app; + uint32_t app; MYSQLND_MEMORY_POOL *pool; zend_uchar *ptr; - unsigned int size; - void (*resize_chunk)(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int size TSRMLS_DC); - void (*free_chunk)(MYSQLND_MEMORY_POOL_CHUNK * chunk, zend_bool cache_it TSRMLS_DC); + uint32_t size; zend_bool from_pool; }; -- cgit v1.2.1