RE: [PHP-DEV] php-5.2.3: zend_opcode.c: pass_two() question

2008-01-11 Thread Kannan Muthukkaruppan
t are really just pointing to "read-only" data. This overhead would go away if assignments from an IS_CONST operand to a target didn't perform copies. Regards, Kannan -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 3:46 PM To: K

RE: [PHP-DEV] php-5.2.3: zend_opcode.c: pass_two() question

2008-01-10 Thread Kannan Muthukkaruppan
ciated with building/tearing down such globals that are really just pointing to "read-only" data. This overhead would go away if assignments from an IS_CONST operand to a target didn't perform copies. Regards, Kannan -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTEC

RE: [PHP-DEV] php-5.2.3: zend_opcode.c: pass_two() question

2008-01-10 Thread Andi Gutmans
Op arrays are read-only. This is a design goal and is especially important for byte code caches where several processes are looking at the same op array. Therefore setting IS_CONST to is_ref=1/refcount=2 we are ensuring that they will not be changed. The copy happens only the first time and afterwa