com php-src: Changed zend_execute_data layout to redu ce memory overhead: Zend/zend_compile.h
| From: | Dmitry Stogov | Date: | Fri, 27 Jun 2014 12:24:29 +0000 |
| Subject: | com php-src: Changed zend_execute_data layout to redu ce memory overhead: Zend/zend_compile.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79282@lists.php.net to get a copy of this message | ||
Commit: 7eebe229162e4241995c4947e511204c9d07e9c4
Author: Dmitry Stogov <dmitry@zend.com> Fri, 27 Jun 2014 16:24:29 +0400
Parents: 6b0c5ddcbc7a7347bf1f5a4b1f2b68205477eef4
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7eebe229162e4241995c4947e511204c9d07e9c4
Log:
Changed zend_execute_data layout to reduce memory overhead
Changed paths:
M Zend/zend_compile.h
Diff:
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 1ccfd5b..5c4aae7 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -360,22 +360,22 @@ typedef enum _vm_frame_kind {
struct _zend_execute_data {
struct _zend_op *opline; /* executed opline */
- zend_function *func; /* executed op_array */
zend_execute_data *call; /* current call */
+ void **run_time_cache;
+ zend_function *func; /* executed op_array */
zend_uint num_args;
- zend_uint flags;
+ zend_uchar flags;
+ zend_uchar frame_kind;
zend_class_entry *called_scope;
zend_object *object;
zend_execute_data *prev_nested_call;
- zend_class_entry *scope; /* function scope (self) */
- zend_array *symbol_table;
- void **run_time_cache;
zend_execute_data *prev_execute_data;
zval *return_value;
- vm_frame_kind frame_kind;
- zval old_error_reporting;
+ zend_class_entry *scope; /* function scope (self) */
+ zend_array *symbol_table;
struct _zend_op *fast_ret; /* used by FAST_CALL/FAST_RET (finally keyword) */
zend_object *delayed_exception;
+ zval old_error_reporting;
};
#define ZEND_CALL_CTOR (1 << 0)