Forum: Ruby on Rails slow Net::HTTP within rails?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Morus W. (Guest)
on 2006-02-13 14:41
(Received via mailing list)
Hi,

for search integration with a lucene search server I'm using an http
post
request.
This request takes ~ 300 ms (just for the ``resp = http.post(url,
query)'' call, where http is some Net::HTTP instance) while the same
http request (same url, same query) in a test program outside rails
takes just ~
60 ms.
I managed to reduce the time within rails by using ruby-curl, but I'd
like to
understand why the Net::HTTP call is so slow.
Any comments?

Morus
This topic is locked and can not be replied to.