Skip to content

Commit d710d9e

Browse files
committed
builtin: change the default builder size used for string interpolations, from 256 bytes to 64 bytes
1 parent 1059a28 commit d710d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/builtin/string_interpolation.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ pub:
694694
// interpolation function
695695
@[direct_array_access; manualfree]
696696
pub fn str_intp(data_len int, input_base &StrIntpData) string {
697-
mut res := strings.new_builder(256)
697+
mut res := strings.new_builder(64)
698698
for i := 0; i < data_len; i++ {
699699
data := unsafe { &input_base[i] }
700700
// avoid empty strings

0 commit comments

Comments
 (0)