couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ara.t.howard" <ara.t.how...@gmail.com>
Subject Re: couchdb's ruby libraries are hampered by Net:HTTP slowness
Date Tue, 28 Oct 2008 21:59:08 GMT

On Oct 28, 2008, at 3:40 PM, Bradford Winfrey wrote:

> Not sure if you saw this or not a few weeks ago: http://apocryph.org/analysis_ruby_18x_http_client_performance
>
> But anyway,  I looked for alternatives to Net::HTTP and saw this: http://github.com/jfairbairn/fasthttp/tree/eventmachine

>  however I'm not sure how "well" it works as I haven't had time to  
> play with it myself.
>
> Any takers on some profiling?
>
> Brad

i've done it many times

step one: cache the connection, don't connect each time

step two: use the client provided by rfuzz, it's the fastest pure ruby  
one.

step three: use something like libcurl

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama




Mime
View raw message