While debugging I noticed that ClassPathFileSystemWatcher#afterPropertiesSet spends a lot of time launching the fileSystemWatcher.
This could be optimized by starting the fileSystemWatcher async (similar to how this is done with spring.jpa.bootstrap) or maybe utilizing the Watcher Thread for the initial FileSystem work.
While debugging I noticed that
ClassPathFileSystemWatcher#afterPropertiesSetspends a lot of time launching the fileSystemWatcher.This could be optimized by starting the fileSystemWatcher async (similar to how this is done with
spring.jpa.bootstrap) or maybe utilizing the Watcher Thread for the initial FileSystem work.