diff options
author | Andrey Hristov <andrey@php.net> | 2008-01-28 18:25:50 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-01-28 18:25:50 +0000 |
commit | 7932ccba6d4e71bf50bba9797134a047d36e10e1 (patch) | |
tree | 703adc6e5e0fea41ffb536a1ac50def65fbdae19 /ext/mysqlnd/mysqlnd_result_meta.c | |
parent | a7dabd575a1e852999ed9a64341e07737f48ec81 (diff) | |
download | php-git-7932ccba6d4e71bf50bba9797134a047d36e10e1.tar.gz |
More optimizations - less MM calls
Clearly separated fetching (physical reading) from decoding phases (data
interpretation). Threaded fetching added but disabled as needs more work for
Windows. For Linux needs some touches to add pthreads if this is enabled,
probably with a compile-time switch.
The code reorganisation makes it easy to add also async API, similar to
cURL's one.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_result_meta.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_result_meta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_result_meta.c b/ext/mysqlnd/mysqlnd_result_meta.c index fac775de29..56906514af 100644 --- a/ext/mysqlnd/mysqlnd_result_meta.c +++ b/ext/mysqlnd/mysqlnd_result_meta.c @@ -421,8 +421,8 @@ MYSQLND_RES_METADATA *mysqlnd_result_meta_init(unsigned int field_count TSRMLS_D /* +1 is to have empty marker at the end */ ret = mnd_ecalloc(1, sizeof(MYSQLND_RES_METADATA)); ret->field_count = field_count; - ret->fields = ecalloc(field_count + 1, sizeof(MYSQLND_FIELD)); - ret->zend_hash_keys = ecalloc(field_count, sizeof(struct mysqlnd_field_hash_key)); + ret->fields = mnd_ecalloc(field_count + 1, sizeof(MYSQLND_FIELD)); + ret->zend_hash_keys = mnd_ecalloc(field_count, sizeof(struct mysqlnd_field_hash_key)); ret->m = & mysqlnd_mysqlnd_res_meta_methods; DBG_INF_FMT("meta=%p", ret); |