From db99188c66e84a921c2fee347f55cca4712e0829 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Thu, 13 Aug 2026 09:22:06 +0200 Subject: [PATCH] perf(coverage): emit each HTML page's code table in one awk pass generate_file_html was 8.1s of a 9.5s report: a Bash loop classifying, looking up and echoing markup for each of 22,405 source lines, plus 15 `cat <"$tests_file" 2>/dev/null; then + : >"$tests_file" + fi # Count total lines and functions local total_lines="${#file_lines[@]}" local non_executable=$((total_lines - executable)) { - cat <<'EOF' + bashunit::coverage::emit_block <<'EOF' @@ -75,7 +158,7 @@ function bashunit::coverage::generate_file_html() { EOF echo " ${display_file##*/} | Coverage Report" - cat <<'EOF' + bashunit::coverage::emit_block <<'EOF'