RFR: 8285956: (fs) Excessive default poll interval in PollingWatchService
Brian Burkhalter
bpb at openjdk.java.net
Mon May 2 19:49:23 UTC 2022
On Mon, 2 May 2022 19:15:18 GMT, Tyler Steele <duke at openjdk.java.net> wrote:
> > Do you have any performance measurements to share?
>
> Nothing terribly rigorous, but the testing I did during development went from a 11.5 sec average down to about 1.5 seconds. Which is more or less what I expected when dropping a 10 second wait ;-)
>
> > Note that the sensitivity can be set as shown in the [SensitivityModifier](https://github.com/openjdk/jdk/blob/41de506ed6c9dc0331c2b6ae99c11623df05f34a/test/jdk/java/nio/file/WatchService/SensitivityModifier.java) test.
>
> Thanks for the link. I noticed it could be changed, but 10s still feels way too long for a default value.
Could you perhaps test it with something a bit less aggressive than 1s, perhaps 5s? Thanks.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8479
More information about the nio-dev
mailing list