From 23c33b14835efdf228b0bc08f40215972f61f842 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 24 Mar 2015 22:47:21 +0300 Subject: Optimized strings concatenation. ZEND_ADD_STRING/VAR/CHAR are replaced with ZEND_ROPE_INTI, ZEND_ROPE_ADD, ZEND_ROPE_END. Instead of reallocation and copying string on each ZEND_ADD_STRING/VAR/CAHR, collect all the strings and then allocate and construct the resulting string once. --- Zend/zend_vm_opcodes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Zend/zend_vm_opcodes.c') diff --git a/Zend/zend_vm_opcodes.c b/Zend/zend_vm_opcodes.c index d464b9ba50..b234c2f33e 100644 --- a/Zend/zend_vm_opcodes.c +++ b/Zend/zend_vm_opcodes.c @@ -75,10 +75,10 @@ const char *zend_vm_opcodes_map[171] = { "ZEND_BRK", "ZEND_CONT", "ZEND_BOOL", - NULL, - "ZEND_ADD_CHAR", - "ZEND_ADD_STRING", - "ZEND_ADD_VAR", + "ZEND_FAST_CONCAT", + "ZEND_ROPE_INIT", + "ZEND_ROPE_ADD", + "ZEND_ROPE_END", "ZEND_BEGIN_SILENCE", "ZEND_END_SILENCE", "ZEND_INIT_FCALL_BY_NAME", -- cgit v1.2.1