Skip to content

Commit 10bd63a

Browse files
committed
test with always inline
1 parent 2ae769e commit 10bd63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/json_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static zend_result php_json_encode_array(smart_str *buf, zval *val, int options,
376376

377377
/* Outlined smart_str_appendl() to avoid performance loss due to code bloat */
378378
// TODO: now I don't outline it anymore...
379-
static void php_json_append(smart_str *dest, const char *src, size_t len)
379+
static zend_always_inline void php_json_append(smart_str *dest, const char *src, size_t len)
380380
{
381381
/* smart_str has a minimum size of the input length,
382382
* this avoids generating initial allocation code */

0 commit comments

Comments
 (0)