Website says: ```There is a performance penalty wh...
# ktor
s
Website says:
Copy code
There is a performance penalty when using auto-reloading. So keep in mind that you should not use it in production or when doing benchmarks.
What exactly would cause a penalty here? Simply a non empty watchPaths, or watchPaths pointing to empty directories, or using reload instead of redeploy ?
c
Every request does up-to-date check and this is done under lock so it will reduce concurrency. This feature is only suitable for quick development and debugging.
However, empty watch paths disables this checks so no penalty.
What is your usecase? Why do you think you need it in production?
s
No, but I think we have it non empty on production but pointing to nonexisting directories
c
I believe it will be disabled in this case as well