Skip to content

Commit 42b9ba6

Browse files
committed
lower the threshold through benchmark tests
1 parent 6c5cd75 commit 42b9ba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/json/json_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static inline void php_json_pretty_print_indent(smart_str *buf, int options, con
5555
{
5656
if (options & PHP_JSON_PRETTY_PRINT) {
5757
int depth = encoder->depth;
58-
if (depth <= 8) {
58+
if (depth <= 4) {
5959
int i;
6060
for (i = 0; i < depth; i++) {
6161
smart_str_appendl(buf, " ", 4);

0 commit comments

Comments
 (0)