rfc:tsrmls-fetch-reduction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:tsrmls-fetch-reduction [2010/09/11 14:25] – update felipe | rfc:tsrmls-fetch-reduction [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
* Version: 1.0 | * Version: 1.0 | ||
* Date: 2010-09-09 | * Date: 2010-09-09 | ||
- | * Author: Felipe Pena < | + | * Author: Felipe Pena <felipe@php.net>, |
- | * Status: Under Discussion | + | * Status: Under implementation |
===== Introduction ===== | ===== Introduction ===== | ||
- | The purpose of RFC is to show a way to reduce several function call by avoiding useless TSRMLS_FETCH() usage on ZTS. | + | The purpose of RFC is to show a way to reduce several function call by avoiding useless TSRMLS_FETCH() usage on ZTS. Adding TSRMLS_CC to the memory allocation macros/ |
===== Changes ====== | ===== Changes ====== | ||
- | |||
- | The main goal was to create a new version of each memory allocation function/ | ||
See below some macros/ | See below some macros/ | ||
^ Current function/ | ^ Current function/ | ||
- | | emalloc | + | | emalloc |
- | | ecalloc | + | | ecalloc |
- | | pemalloc | + | | pemalloc |
- | | erealloc | + | | erealloc |
- | | efree | efreets | + | | efree | efree2 |
- | | estrdup | + | | estrdup |
- | | estrndup | + | | estrndup |
- | | ALLOC_INIT_ZVAL | + | |
- | | SEPARATE_ZVAL | + | |
- | | SEPARATE_ZVAL_IF_NOT_REF | SEPARATE_ZVAL_IF_NOT_REF_TS | | + | |
- | | SEPARATE_ZVAL_TO_MAKE_IS_REF | SEPARATE_ZVAL_TO_MAKE_IS_REF_TS | + | |
===== Profiler ===== | ===== Profiler ===== |
rfc/tsrmls-fetch-reduction.1284215127.txt.gz · Last modified: 2017/09/22 13:28 (external edit)