Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beholder take 45s to watch a dir #11

Open
whatacold opened this issue Nov 9, 2024 · 1 comment
Open

Beholder take 45s to watch a dir #11

whatacold opened this issue Nov 9, 2024 · 1 comment

Comments

@whatacold
Copy link

Hi,

Just noticed a weird thing, that beholder takes 45s to watch a dir on
my pc, but it almost instantly finishes the job on another dir, is it
normal?

;;; below dirs are on different fs

(time (beholder/watch prn "/home/ken/tmp/"))
;; "Elapsed time: 43874.502804 msecs"

(time (beholder/watch prn "/tmp/"))
;; "Elapsed time: 148.206494 msecs"

In the meantime, I'm trying to figure it out using clj-async-profiler.

@whatacold
Copy link
Author

I found out from a flamegraph that this slowness is due to walking through the whole directory. I'm not sure if this is a problem, or it's just necessary to do that to watch a dir.
2024-11-10_07-46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant