gjoseph / BarbaryWatchService

An implementation of Java 7’s WatchService for OS X
41 stars 10 forks source link

Really slow on macOS Monterey #15

Closed bludginozzie closed 2 years ago

bludginozzie commented 2 years ago

This project has lasted 7 years without a code change but it appears that this has now come to an end. I am finding that this watch service is really slow on Monterey. In fact it's less performant than the polling watch service provided with the jdk. Is anyone else seeing this?

bludginozzie commented 2 years ago

Further to this, I discovered this project - https://github.com/gmethvin/directory-watcher.

It is more actively maintained and works well on Monterey.

anderseknert commented 2 years ago

Yeah, I haven't used this package in the past, but trying it out for a recent project and I'm seeing quite a noticeable delay from the time of the event to the callback getting triggered. It doesn't really matter for this project, but I'll check out the repo you recommended if it does at some point in time, thanks 👍

gjoseph commented 2 years ago

@bludginozzie @anderseknert apologies for the slow response - as you may have gathered, I've not had any time/energy to devote to this project in a long time. Happy to accept PRs if you want anything done, or transfer ownership. If there are good alternatives out there, happy to link them in the README.

anderseknert commented 2 years ago

No worries @gjoseph, this works well enough for my purposes. Thanks! 👍