Thank you!

On Wed, Jun 3, 2015 at 3:43 PM, Roberto De Ioris <[email protected]> wrote:

>
> > When I use large set of object while processing request, stopping GC may
> > increase performance.
> >
> > import gc
> > gc.disable()  # Stop GC first for faster boot
> >
> > ... # loading apps
> >
> > _app = app
> > def app(env, start):
> >     try:
> >         return _app(env, start)
> >     finally:
> >         gc.collect(1)  # Run GC(1) at end of each request.
> >
> > gc.collect()  # Run full GC before accepting request.
> >
> > ​But in this pattern, each GC happen before sending response.
> > I want to run GC after sending response and before accepting next
> request.
> > Does uWSGI API support this?
> > ​
> > --
> > INADA Naoki  <[email protected]>
>
>
> uwsgi.after_req_hook = xxx
>
> --
> Roberto De Ioris
> http://unbit.com
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>



-- 
INADA Naoki  <[email protected]>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to