I did some profiling on my code and the real bottle neck is using the Net::HTTP library. I'm using it to grab HTML from a website. Our server is located in Boston and after doing a digg I came to found out the server we are communicating with is located in LA. I realize the communication between the 2 servers is something I can not speed up, as our server is in a very nice data center with 6 T3s. But I would still like to speed up Ruby as much as possible. Am I wrong here?
Lastly, I read in another thread that the Net::HTTP library was actually slow and using something like curl is faster. Is this correct?
Anyways, going back to my original post. I am new to ruby and I just wanted to make sure that I was getting the most out of it. I was uncertain if ruby had a configuration file or any kind of configuration that would keep it from using ALL of your computer's resources.
Thanks for the help.
Thank You,
Ben Johnson
E: bjohnson@contuitive.com
···
On Jul 16, 2006, at 8:43 AM, Alexandru Popescu wrote
I would say that in the world I am come from, or maybe in an ideal
world I would say:
- have you identified which parts are slow for you? I mean what is
performing bad from your business perspective?
- if not, than I would ask how can I figure out which parts are the
slowest for the scenarios I want more speed
- if yes, I would point my finger to the problem and ask if there is
any knowledge on how to speed up those fragment. If not, than what
alternatives I can take.