refactor: optimize file watching and sourcemap generation

- Enhanced performance by replacing kqueue with FSEvents on macOS and implementing a lazy watch setup.
- Introduced platform-specific file watchers for improved event handling on macOS, Linux, and Windows.
- Updated sourcemap generation to use a oneshot session for non-watch scenarios.
- Cleaned up the ServeSession's init_tree function by removing the path_roots return value, streamlining the codebase.
This commit is contained in:
Joe 2026-03-12 20:19:30 -05:00
parent 34375d1339
commit a901848861
4 changed files with 47 additions and 35 deletions

View file

@ -31,7 +31,9 @@ Making a new release? Simply add the new header with the version and date undern
## Unreleased
* Add .gitignore for logs and refactor ServeSession to include path_roots in init_tree return
* Optimize serve/sourcemap startup performance: replace kqueue with FSEvents on macOS, lazy watch setup, build RefPathIndex from patch entries instead of directory walk
* Use platform-specific file watcher: raw notify + custom debounce on macOS, debouncer-full on Linux/Windows
* Use oneshot session for non-watch sourcemap generation
## [8.5.6] (March 8th, 2026)