mirror of
https://github.com/vlang/v.git
synced 2025-09-08 23:07:19 -04:00
builtin: change the default builder size used for string interpolations, from 256 bytes to 64 bytes
This commit is contained in:
parent
1059a28946
commit
d710d9ef85
@ -694,7 +694,7 @@ pub:
|
||||
// interpolation function
|
||||
@[direct_array_access; manualfree]
|
||||
pub fn str_intp(data_len int, input_base &StrIntpData) string {
|
||||
mut res := strings.new_builder(256)
|
||||
mut res := strings.new_builder(64)
|
||||
for i := 0; i < data_len; i++ {
|
||||
data := unsafe { &input_base[i] }
|
||||
// avoid empty strings
|
||||
|
Loading…
x
Reference in New Issue
Block a user