Skip to content

perf(runner): detect base64 -w with a case match, drop a grep fork#803

Merged
Chemaclass merged 1 commit into
mainfrom
perf/coldstart-base64-grep-fork
Jul 15, 2026
Merged

perf(runner): detect base64 -w with a case match, drop a grep fork#803
Chemaclass merged 1 commit into
mainfrom
perf/coldstart-base64-grep-fork

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Continuing the cold-start fork reduction from #798/#802. state.sh scraped base64 --help through a grep fork at load to cache whether base64 supports -w.

💡 Changes

  • Match the captured base64 --help text with a shell case instead of piping into grep — identical detection, one fewer fork on every cold start (1 → 0 grep forks).
  • Matters across the acceptance suite's ~258 nested runs.
  • Regression test extended (fork census). No behaviour change.

state.sh scraped `base64 --help` through a `grep -c -- -w` fork at load to
cache whether base64 supports -w. Match the captured help text with a shell
`case` instead — identical detection, one fewer fork on every cold start
(1 -> 0 grep forks), which matters across the acceptance suite's nested runs.

No behaviour change.
@Chemaclass Chemaclass added the enhancement New feature or request label Jul 15, 2026
@Chemaclass Chemaclass self-assigned this Jul 15, 2026
@Chemaclass Chemaclass merged commit 1dd2c7d into main Jul 15, 2026
37 checks passed
@Chemaclass Chemaclass deleted the perf/coldstart-base64-grep-fork branch July 15, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant