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
C import builds macro value tables with quadratic prefix copies, stalling Windows package checks #1163
Floating bzip2 and libcurl UATs time out inside C import on both native Windows architectures. Native dumps now identify an expensive common path rather than a linker or child-process wait.
At the libcurl x86_64 collector frame, rbp=0x3c9d is the current index (15517) and rbx=0x8257 is the macro count (33367). The call at helper +607 invokes with_str_concat_n with five parts. The first part is the entire existing string, length 0x8dc54, and the other four append a delimiter, name, delimiter, and value. The next instructions replace and free the old string. This is the exact values = values ++ "|" ++ name ++ "=" ++ value line in src/CImport.w (currently 2763). Repeated full-prefix copies make table construction quadratic.
A reduced import containing only internal integer object macros plus one public ANSWER reproduces the scaling on Darwin under a forced cold cache: frontend.c_import takes 226.480 ms at 1000 macros, 3389.432 ms at 8000, and 45990.103 ms at 33000. The generator and logs are under out/with-get-investigation/generate_macro_scaling.w and macro_scale_*-baseline.log.
Expected: the available surface promised by specification §16.2 and the handoff's explicit floating-package ruling remains practical for ordinary platform headers. Preserve every macro and its diagnostics; do not filter away the header surface or raise the UAT timeout. Use the existing amortized append facility for table construction and inspect the rest of the macro pipeline for the same cost pattern. The captures so far identify an expensive region; verification must still show that fixing it resolves the complete package timeout.
Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce in source; 667c6d1 (#1191) rewrote ci_collect_object_macro_values (src/CImport.w:3528) to insert each macro into a HashMap[str, str], with no accumulated string to copy.
Activity
Make C macro collection scale with header size
Make C macro collection scale with header size
Make C macro collection scale with header size
with get: c_import, Conan, ToolFs, linking and ownership fixes; darwi…
ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): does not reproduce in source; 667c6d1 (#1191) rewroteci_collect_object_macro_values(src/CImport.w:3528) to insert each macro into aHashMap[str, str], with no accumulated string to copy.