When I start my FUSE app and enter it's mount folder in Finder, Finder keeps calling contentsOfDirectoryAtPath and attributesOfItemAtPath recursively for every file in my virtual file system. And it never stops. It calls several thousand times per second.
I now it's Finder process invoking these callbacks because I check the process PID in GMUserFileSystem.currentContext.
When I relaunch Finder it is silent until I enter the mount folder in Finder.
Is there some mount option or a way to prevent Finder from continuously querying the whole virtual file system. It is degrading performance in some cases.
Does anyone have similar issues? Try placing a log statement in attributesOfItemAtPath to get a feeling of how often this method gets called and for what paths.