Skip to content

Commit

Permalink
Mark fcc as initialized for object calls
Browse files Browse the repository at this point in the history
This results in 1% speedup (cycle count) on some real world applications
  • Loading branch information
bwoebi committed May 3, 2016
1 parent ec7c3c2 commit b4c5009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Zend/zend_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -3358,6 +3358,7 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint
memcpy(ZSTR_VAL(*callable_name), ZSTR_VAL(ce->name), ZSTR_LEN(ce->name));
memcpy(ZSTR_VAL(*callable_name) + ZSTR_LEN(ce->name), "::__invoke", sizeof("::__invoke"));
}
fcc->initialized = 1;
return 1;
}
if (callable_name) {
Expand Down

0 comments on commit b4c5009

Please sign in to comment.