rfc:tsrmls-fetch-reduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:tsrmls-fetch-reduction [2010/09/11 14:25] – update feliperfc: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 <felipe@php.net> +  * Author: Felipe Pena <felipe@php.net>, Pierre Alain Joye <pajoye@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/function, hash api, zend_llist and streams.
  
 ===== Changes ====== ===== Changes ======
- 
-The main goal was to create a new version of each memory allocation function/macro where TSRMLS_FETCH() is not used, thus using these new functions/macros only when suitable avoiding to call the function that does thread id fetch. 
  
 See below some macros/functions will be added by the patch. See below some macros/functions will be added by the patch.
  
 ^ Current function/macro ^ New function/macro ^ ^ Current function/macro ^ New function/macro ^
-| emalloc          | emallocts    | +| emalloc          | emalloc2    | 
-| ecalloc          | ecallocts    | +| ecalloc          | ecalloc2    | 
-| pemalloc         pemallocts   | +| pemalloc         pemalloc2   | 
-| erealloc         ereallocts   | +| erealloc         erealloc2   | 
-| efree            | efreets      | +| efree            | efree2      | 
-| estrdup          | estrdupts    | +| estrdup          | estrdup2    | 
-| estrndup         estrndupts   +| estrndup         estrndup2   |
-| ALLOC_INIT_ZVAL  | ALLOC_INIT_ZVAL_TS | +
-| SEPARATE_ZVAL    | SEPARATE_ZVAL_TS   | +
-| 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)