Skip to content

Commit 718dbb1

Browse files
committed
preallocate space for 10 facts by default
1 parent 61b781f commit 718dbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/v/v.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn rebuild(prefs &pref.Preferences) {
211211
}
212212

213213
fn setup_vbuild_env_vars(prefs &pref.Preferences) {
214-
mut facts := []string{}
214+
mut facts := []string{cap: 10}
215215
facts << prefs.os.lower()
216216
facts << prefs.ccompiler_type.str()
217217
facts << prefs.arch.str()

0 commit comments

Comments
 (0)