Skip to content

Commit f7fe86e

Browse files
committed
parser.c: noinline json_eat_comments
Comments shouldn't be present in performance sensitive documents, so it's best not to inline it to make space for more important code.
1 parent 5233dd9 commit f7fe86e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/json/ext/parser/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static uint32_t unescape_unicode(JSON_ParserState *state, const char *sp, const
529529

530530
static const rb_data_type_t JSON_ParserConfig_type;
531531

532-
static void
532+
NOINLINE(static) void
533533
json_eat_comments(JSON_ParserState *state)
534534
{
535535
const char *start = state->cursor;

0 commit comments

Comments
 (0)