-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
Description
Slow CLI Startup Times on Windows Compared to MacOS
Description
The CLI tool (mycoder
or when using pnpm cli
) has significantly slower startup times on Windows compared to MacOS. The delay appears to occur during initialization, before the agent even begins to run.
Expected Behavior
CLI startup times should be comparable across operating systems.
Current Behavior
- Windows: Noticeable delay during startup
- MacOS: Fast startup
Possible Contributing Factors
- Node.js module loading differences between platforms
- Sentry initialization overhead
- File system operations that might be slower on Windows
- Dependencies that might have platform-specific performance characteristics
Proposed Solutions
-
Add profiling capabilities to identify bottlenecks:
- Add a
--profile
flag to measure and output timing data for each initialization step - Instrument key parts of the startup sequence with performance measurements
- Consider using Node.js built-in performance APIs
- Add a
-
Investigate common Windows performance issues:
- Check for file system operations that might be optimized
- Evaluate if lazy-loading certain modules could improve startup time
- Review Sentry initialization and consider deferring it when not needed
Additional Information
The issue is specifically with the startup time before the agent begins running, suggesting the problem is in the CLI initialization phase rather than in the agent execution.