You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
with ast: render_module is quadratic; lib/std/tommyds/check_.w (72 KB) runs for more than 36 minutes #1358
with ast lib/std/tommyds/check_.w did not finish after 36 minutes of CPU time with the installed compiler (v0.15.2.1-g478b26481). The stage1 built from #1357 behaves the same. The parse succeeds and reports its diagnostics before any rendering starts. The time goes to building the dump text: render_module in dump_ast (src/main.w, around line 3163).
sample of the running process shows 1142 of 1332 samples in str_concat_n_copy (rt_core.w:2180) and 132 in with_str_concat_n_move_first. The output string is grown by repeated concatenation, so the cost is quadratic in the output size.
Found while sweeping the tree for #1346, which used ast as a parse-only check. rt/fiber_core_windows.w is also slow: over 30 s.
Expected: ast time grows linearly with file size, for example by writing the output as it goes or by building it in one buffer.
Seen again 2026-09-23 while sweeping parse verdicts for #1391 (the #1475 report, now closed as a duplicate). stage1 of origin/main ba2d5d1 is killed at 60 s on lib/std/tommyds/check_.w, and check of the same file takes 14 s. With a 5 s per-file timeout, these files also do not finish: lib/std/build.w, lib/std/re/defs.w, rt/fiber_core_darwin.w, rt/fiber_core_windows.w, src/compiler/LlvmBridge.w.
Activity
ehartford commentedon Sep 23, 2026
Seen again 2026-09-23 while sweeping parse verdicts for #1391 (the #1475 report, now closed as a duplicate). stage1 of origin/main ba2d5d1 is killed at 60 s on lib/std/tommyds/check_.w, and
checkof the same file takes 14 s. With a 5 s per-file timeout, these files also do not finish: lib/std/build.w, lib/std/re/defs.w, rt/fiber_core_darwin.w, rt/fiber_core_windows.w, src/compiler/LlvmBridge.w.with ast: builds its dump in one buffer per list and prints a fill as…
Parser: a body opened at end of line must sit deeper than its constru…
Parser: a body opened at end of line must sit deeper than its constru…
Parser/Sema/MirLower: `[value; N]` with a `const` count builds N copi…
Parser/Sema/MirLower: `[value; N]` with a `const` count builds N copi…
Parser/Sema/MirLower: `[value; N]` with a `const` count builds N copi…
Language fixes: discarded results dropped, indentation, casts through…