nx
Nx
GitHub
Nx
Workspace
GitHub
CI Pipeline Executions
Current execution
Canceled
sj/daemon-outdated-check-events
Runs and Agents
Timeline
Beta
Configuration
Self-Healing CI
Project Graph
Circular Dependencies
Enterprise
Resource Usage
Analysis
Conformance
Enterprise
Runs
Current run
Succeeded
Tasks
Resource Usage
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
fix(core): check the lockfiles on watch events instead of every 20 ms The daemon's outdated check ran on a 20 ms interval. Every tick read the process file, resolved the installed nx version and hashed every lockfile at the workspace root. With a 1.7 MB yarn.lock an idle daemon read the file 34 to 50 times a second: 8 to 12% of a core and 57 MB/s on a Windows laptop, 5 to 6% of a core on an M4 Mac, for a daemon doing nothing. The watch already names every changed path. The lockfile hash is now recorded once, before the watch starts, and compared only when a batch names a lockfile at the root; a change the kernel dropped arrives as an ordinary batch after the re-walk. The process-file check already ran on the watch event for that file, and now also runs when the watch reports dropped events, since that event may have been among them. A client connection runs all three checks once before the daemon serves it, so a change the watch never reported is still caught at the next request. The interval is gone.
nx-cloud record -- pnpm nx-cloud conformance:check
⌘K
Succeeded
nx-cloud record -- pnpm nx-cloud conformance:check
Click to copy
Linux
4 CPU cores
d8157d77
37113
GitHub
Nx
Workspace