diff options
author | Andrey Hristov <andrey@php.net> | 2009-06-16 09:15:38 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2009-06-16 09:15:38 +0000 |
commit | 27270621cbcf8d2e7f6521f505499b91e45cdc82 (patch) | |
tree | 9559ccfa0f25a033935ed468eb07fa5869ba9284 /ext/mysqlnd/mysqlnd_block_alloc.h | |
parent | f0f302fe7fe1fd78623e3a6527410d1e28801efe (diff) | |
download | php-git-27270621cbcf8d2e7f6521f505499b91e45cdc82.tar.gz |
MFH:
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.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_block_alloc.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_block_alloc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/mysqlnd/mysqlnd_block_alloc.h b/ext/mysqlnd/mysqlnd_block_alloc.h index 505a23b2ee..feace67451 100644 --- a/ext/mysqlnd/mysqlnd_block_alloc.h +++ b/ext/mysqlnd/mysqlnd_block_alloc.h @@ -25,6 +25,9 @@ MYSQLND_MEMORY_POOL * mysqlnd_mempool_create(size_t arena_size TSRMLS_DC); void mysqlnd_mempool_destroy(MYSQLND_MEMORY_POOL * pool TSRMLS_DC); +void mysqlnd_mempool_resize_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk, unsigned int size TSRMLS_DC); +void mysqlnd_mempool_free_chunk(MYSQLND_MEMORY_POOL_CHUNK * chunk, zend_bool cache_it TSRMLS_DC); + #endif /* MYSQLND_BLOCK_ALLOC_H */ |