Re: optimizations for serving binary with ring

2012-01-30 Thread Brent Millare
Hmm I seemed to have figured it out. Calling memo-lru on the handler was not a good idea since there are elements that change with each request, therefore all calls were a cache miss. Also I, I can't wrap memo-lru on a function that outputs a bytearrayinputstream since that object has state. I

optimizations for serving binary with ring

2012-01-30 Thread Brent Millare
I'm dynamically generating images for a website and I'm hosting the content using ring. Currently I use moustache for routing, where I have a handler that returns a response map and the response map contains a bytearrayinputstream. Currently I wrap the handler that makes the image file with mem