Elektrine lite

← Feed

@loicfaugeron@phpc.social

Post #4031538

2026-07-23 08:49 UTC

TIL: one thing I was annoyed with phpactor was the spawning of `find` processes to index stuff. Today I decided to do something about it! Originally I was thinking about swapping `find` for `fd`, so I looked at the docs. Turns out there's a better option: find re-scans periodically for changed files even if nothing changed. But `inotify` (Linux) and `fswatch` (macOS) can be used instead, which is more efficient because they listen for OS notifications when the files actually changed!

Replies (0)

No replies.