> 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
