Re: [Python-Dev] Python startup optimization: script vs. service

2017-10-02 Thread George King
them would suffer for having the first request respond slightly slowly. In many cases they have slow first response times anyway due to file system warmup, etc. > On Oct 2, 2017, at 10:48 AM, Christian Heimes wrote: > > On 2017-10-02 14:05, George King wrote: >> I’m new to

Re: [Python-Dev] Python startup optimization: script vs. service

2017-10-02 Thread George King
I’m new to this issue, but curious: could the long-running server mitigate lazy loading problems simply by explicitly importing the deferred modules, e.g. at the top of __main__.py? It would require some performance tracing or other analysis to figure out what needed to be imported, but this mig

Re: [Python-Dev] API design question: how to extend sys.settrace()?

2017-09-27 Thread George King
Victor, thank you for starting this conversation. Nick, I just looked at your patch and I think it is a better solution than mine, because it does not involve adding to or changing the sys API. I will close my pull request. The reason for my interest in this area is that I’m experimenting with a