Send files faster with X-Sendfile
Rails' send_file has a beautiful, simple interface. Unfortunately, it ties up your Rails process with the rather mundane task of reading a file from disk. If you use Mongrel, you'll quickly notice that the :stream option doesn't seem to make any difference in memory usage and your mongrel process stubbornly doesn't want to let go of that memory once the file has been sent. This is a very, very bad thing. Continued →
Recently
About Me
Hello there! I recently moved across the country with my fantastic wife. I particularly enjoy Ruby, Rails, thinking about thinking, and single-speed cycling.
I'm currently looking for work. Do you have an interesting project or job opportunity? Check out my portfolio and get in touch.