Re: [pylons-discuss] Store class at process start, and use it to initiate inside function?

2018-11-28 Thread Lukasz Szybalski
On Monday, October 8, 2018 at 12:10:20 PM UTC-5, Michael Merickel wrote: > > If you are doing loading of data at "first run of the function" then you > have introduced a race condition in your app where unless you do > appropriate locking, two threads (most wsgi servers serve a request per > t

Re: [pylons-discuss] Store class at process start, and use it to initiate inside function?

2018-11-28 Thread Lukasz Szybalski
On Tuesday, October 9, 2018 at 11:08:35 AM UTC-5, Bert JW Regeer wrote: > > I would disagree, heavily. You want to create your globals once, then > fork. This way the memory used by said global can be shared between all of > the processes. Instagram even added the ability to freeze items so tha