Skip to content

perf(runner): single uname fork at cold start#799

Merged
Chemaclass merged 1 commit into
mainfrom
perf/798-single-uname-cold-start
Jul 14, 2026
Merged

perf(runner): single uname fork at cold start#799
Chemaclass merged 1 commit into
mainfrom
perf/798-single-uname-cold-start

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Related #798

Profiling the acceptance suite's nested bashunit cold starts (the frontier from #761) showed check_os.sh forking uname twice on every load.

💡 Changes

  • Drop the redundant module-scope uname call; check_os::init (run at load) already sets _BASHUNIT_UNAME before any reader, cutting one fork per cold start.
  • Add a regression test asserting module load detects the OS with a single uname call.

check_os.sh forked `uname` twice per load: once at module scope and again
inside check_os::init (invoked at load). init sets _BASHUNIT_UNAME before any
reader runs, so the module-scope call was dead weight — one redundant fork on
every one of the acceptance suite's 258 nested bashunit cold starts.

Closes #798
@Chemaclass Chemaclass added the enhancement New feature or request label Jul 14, 2026
@Chemaclass Chemaclass self-assigned this Jul 14, 2026
@Chemaclass Chemaclass merged commit 61f5b24 into main Jul 14, 2026
37 checks passed
@Chemaclass Chemaclass deleted the perf/798-single-uname-cold-start branch July 14, 2026 13:10
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.

2 participants