1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Reduce the minimum string buffer size from 127 to 63 bytes

This commit is contained in:
Lourens Naudé 2019-04-25 22:35:43 +01:00 committed by 卜部昌平
parent 0ca4f74967
commit 9c24ce551d
Notes: git 2019-10-11 11:16:40 +09:00

View file

@ -1346,7 +1346,7 @@ str_new_empty(VALUE str)
return v;
}
#define STR_BUF_MIN_SIZE 127
#define STR_BUF_MIN_SIZE 63
STATIC_ASSERT(STR_BUF_MIN_SIZE, STR_BUF_MIN_SIZE > RSTRING_EMBED_LEN_MAX);
VALUE