lordmauve / chopsticks

Chopsticks is an orchestration library: it lets you execute Python code on remote hosts over SSH.
https://chopsticks.readthedocs.io/
Apache License 2.0
158 stars 16 forks source link

Cache paths used to serve each import #33

Open lordmauve opened 7 years ago

lordmauve commented 7 years ago

While the importer maintains a cache on each client, the deployment host traverses sys.path every time an import request is received. This is wasteful when we expect that in most cases imports will be needed by multiple connected tunnels.