Skip to content

feat(deps): add watchfiles

Mario Oenning requested to merge moson/aurweb:add-dep-watchfiles into master

When running aurweb with hot-reloading, the CPU consumption is quite high.
This is because it is using the "StatReload" for detecting modified files.
(which seems to be rather inefficient)

When "watchfiles" is installed it'll automatically uses that instead and CPU load goes down to 1% (from ~40%). watchfiles uses filesystem events for detecting changes and is way more efficient.

Signed-off-by: moson-mo

Edited by Mario Oenning

Merge request reports