Skip to content

Commit eef77e3

Browse files
committed
tools: make parser_speed.v more robust (now find . -name "*.v" | xargs v run cmd/tools/measure/parser_speed.v passes)
1 parent 2fec2fa commit eef77e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/tools/measure/parser_speed.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ fn main() {
1818
}
1919

2020
fn process_files(files []string) ! {
21-
mut table := ast.new_table()
2221
mut pref_ := pref.new_preferences()
2322
pref_.is_fmt = true
2423
pref_.skip_warnings = true
@@ -28,6 +27,7 @@ fn process_files(files []string) ! {
2827
mut total_bytes := i64(0)
2928
mut total_tokens := i64(0)
3029
for f in files {
30+
mut table := ast.new_table()
3131
if f == '' {
3232
continue
3333
}

0 commit comments

Comments
 (0)