Repository navigation
[feat] fs.watch - #3249
[feat] fs.watch#3249
Conversation
8287dcf to
8496df3
Compare
|
❌ @cirospaciari 9 files with test failures on linux-x64:
|
|
❌ @cirospaciari 8 files with test failures on linux-x64-baseline:
|
|
❌ @cirospaciari 12 files with test failures on bun-darwin-x64-baseline:
|
5947339 to
c11ca54
Compare
|
❌ @cirospaciari 10 files with test failures on bun-darwin-aarch64:
|
6ad6e80 to
12f8f87
Compare
|
✅ |
144c9a5 to
879ffc8
Compare
|
Today once initialized we never deinit this loop, but we can deinit it when no watchers are active https://github.com/oven-sh/bun/blob/a448078534811b8e2ecba1df1309e4101ab12a88/src/bun.js/node/fs_events.zig#L541-L563 This implementation is also using babylist to keep track of active stuff and we reuse free slots, not the optimal way but should be fine when using 1-100 watchers https://github.com/oven-sh/bun/blob/a448078534811b8e2ecba1df1309e4101ab12a88/src/bun.js/node/fs_events.zig#L501-L508 This is the main logic https://github.com/oven-sh/bun/blob/a448078534811b8e2ecba1df1309e4101ab12a88/src/bun.js/node/fs_events.zig#L355-L406 |
a448078 to
ad5cb0a
Compare
|
🎉 |
No description provided.