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:
parent
0ca4f74967
commit
9c24ce551d
Notes:
git
2019-10-11 11:16:40 +09:00
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -1346,7 +1346,7 @@ str_new_empty(VALUE str)
|
||||||
return v;
|
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);
|
STATIC_ASSERT(STR_BUF_MIN_SIZE, STR_BUF_MIN_SIZE > RSTRING_EMBED_LEN_MAX);
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue