mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(deps): add watchfiles
When running aurweb with hot-reloading, the CPU consumption is quite high. This is because it is using "StatReload" for detecting modified files. (which seems to be rather inefficient) When "watchfiles" is installed it'll automatically usees that instead and CPU load goes down to 1%. watchfiles uses filesystem events for detecting changes and is way more efficient. Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
255cdcf667
commit
7f9ac28f6e
2 changed files with 36 additions and 4 deletions
|
@ -102,6 +102,7 @@ pytest = "^7.2.0"
|
|||
pytest-asyncio = "^0.20.2"
|
||||
pytest-cov = "^4.0.0"
|
||||
pytest-tap = "^3.2"
|
||||
watchfiles = "^0.18.1"
|
||||
|
||||
[tool.poetry.scripts]
|
||||
aurweb-git-auth = "aurweb.git.auth:main"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue