Working Remotely? Thinking about it?

Are you a member of a geographically dispersed team? Are you thinking of working remotely, or hiring remote developers? Wide Teams is my new blog and podcast for distributed teams. Check it out for getting started guides, tips and best practices, news, interviews, screencasts, and more all about working remotely and collaborating with wide-spread teams.

Speed up RightAWS by Enabling libxml

2009 November 19
by avdi

So I was profiling our app the other day and discovered it was spending a significant amount of time in REXML.

“REXML?” I thought. “Who uses REXML in 2009?” For anyone who doesn’t know, REXML is Ruby’s standard pure-Ruby XML parser. It’s advantage is that it’s always available. It’s disadvantages include being very, very slow as well as having some significant deficiencies as an XML parser.

As it turns out, RightAWS uses REXML. By default, at least. But it can also use libxml-ruby. So long as you have libxml-ruby installed, all you have to do is put this somewhere in your app startup:

RightAws::RightAWSParser.xml_lib = 'libxml'

…and you should see significantly faster AWS communication.

Bookmark and Share
Creative Commons License
This work, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

Related posts:

  1. RightAWS and SSL Certificates
  2. Copying Amazon SimpleDB Domains
blog comments powered by Disqus