Skip to content

Commit

Permalink
builtin: change the default builder size used for string interpolatio…
Browse files Browse the repository at this point in the history
…ns, from 256 bytes to 64 bytes
  • Loading branch information
spytheman committed Jan 25, 2025
1 parent 1059a28 commit d710d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/builtin/string_interpolation.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d710d9e

Please sign in to comment.