Pylons/pyramid — Issue #447: Performance: Look for wsgi.file_wrapper for sendfile support
Author: bbangert
Created: 2012-02-24 22:35:11+00:00
State: open
Labels: enhancements

Pyramid's static file view would be substantially faster if it used sendfile support when available to send files. This can be tested for by looking for 'wsgi.file_wrapper' in the WSGI environ.

See sendfile example for gunicorn:
https://github.com/benoitc/gunicorn/blob/master/examples/sendfile.py