Hi Falcon devs,
I made some changes to the code to make the default CompiledRouter pickle-able.
My motivation for doing this was to eventually create a SharedRouter class that can be shared across multiple gunicorn workers, using Python multiprocessing objects.
Being a pickle-able object is a prerequisite for most IPC mechanisms, and hence I had to make some changes to the code.
There is no breaking change and all the tests pass.
I have made the changes in my fork at
https://github.com/munircontractor/falcon. I can submit a pull request if this functionality is something you would like to have.
Thanks,
Munir