Pylons/Kotti — pull request #59 by disko (2012-05-07 20:02:39+00:00)
Title: Accelerate file downloads by serveral thousand percents (if your files are large enough)

Instead of constructing the response body by iterating over the file_data, the body should be assigned as a single string at once.

Download time for a 1.5MB file has been > 25 seconds (at 100% CPU) before the change and is down to 60 ms after the change (on my development machine.