Skip to content

perf(cli): use compile cache (~10% faster)#2808

Merged
vignesh07 merged 4 commits intoopenclaw:mainfrom
pi0:perf/compile-cache
Jan 27, 2026
Merged

perf(cli): use compile cache (~10% faster)#2808
vignesh07 merged 4 commits intoopenclaw:mainfrom
pi0:perf/compile-cache

Conversation

@pi0
Copy link
Contributor

@pi0 pi0 commented Jan 27, 2026

(shamefully written by a human) This PR makes CLI startup time ~10% faster (tested on Node.js 25 on MBP M4) by leveraging on disk module compile cache

Docs updated to recommand top level ./moltbot.mjs (instead of dist/entry.js)

hyperfine "node ./moltbot.mjs --help" "node ./dist/entry.js --help"
Benchmark 1: node ./moltbot.mjs --help
  Time (mean ± σ):     747.7 ms ±   9.3 ms    [User: 730.0 ms, System: 224.2 ms]
  Range (min … max):   734.3 ms … 763.2 ms    10 runs
 
Benchmark 2: node ./dist/entry.js --help
  Time (mean ± σ):     824.1 ms ±   5.7 ms    [User: 874.6 ms, System: 163.8 ms]
  Range (min … max):   816.2 ms … 834.1 ms    10 runs
 
Summary
  node ./moltbot.mjs --help ran
    1.10 ± 0.02 times faster than node ./dist/entry.js --help

@openclaw-barnacle openclaw-barnacle bot added docs Improvements or additions to documentation scripts Repository scripts docker Docker and sandbox tooling labels Jan 27, 2026
@vignesh07 vignesh07 self-assigned this Jan 27, 2026
@vignesh07 vignesh07 merged commit 2490288 into openclaw:main Jan 27, 2026
1 check passed
@vignesh07
Copy link
Contributor

Landed via temp rebase onto main.

  • Gate: pnpm lint && pnpm build && pnpm test
  • Land commit: 2490288
  • Merge commit: 2490288

Thanks @pi0!

@pi0 pi0 deleted the perf/compile-cache branch January 28, 2026 08:26
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Jan 31, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Feb 1, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Feb 1, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Feb 1, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Feb 1, 2026
YuriNachos pushed a commit to YuriNachos/clawdbot-fork that referenced this pull request Feb 1, 2026
bestNiu pushed a commit to bestNiu/clawdbot that referenced this pull request Feb 5, 2026
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
perf(cli): use compile cache (~10% faster)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation scripts Repository scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants