Development server reloading on Jython
|Reported by:||Leo Soto M.||Owned by:||nobody|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
The existing development server reloading code uses a process forking approach, which works well on CPython but is not very applicable on Jython, where the JVM startup time and the loose of HotSpot optimizations caused by respawning the Jython process are not desiderable. Not to mention that some spawnve POSIX flags aren't supported yet.
So, I've implemented an alternative (and IMHO, simpler) reloader strategy for Jython, which is helped by Jython itself. The Jython bits have been recently commited so this will work out of the box.
It also includes a small refactoring of autoreload.py, to avoid code duplication.