Showing posts with label Ruby. Show all posts
Showing posts with label Ruby. Show all posts

Tuesday, February 19, 2013

Ruby On Rails State of Practice: Deployment and Management

Rails developers can draw from a huge pool of libraries to build their applications. Dozens of options are available just for templating: do you use ERB, HAML, SASS, or do you prefer a JavaScript approach with Backbone.js or Knockout.js? The possibilities are endless, so we want to find out what our readers are using, or planning to use in the future.
Ruby On Rails State of Practice: Deployment and Management

Tuesday, November 15, 2011

Dr Dobb's - Fast XML Parsing in Ruby

Sometimes the fastest way to parse a known XML stream is to write your own lean parser. Even in Ruby, this gives remarkable performance benefits.


Most programming languages have their own XML parser libraries. And many of those use the DOM (Document Object Model) API. DOM is good for general-purpose XML processing: The input is parsed into a tree structure that can be modified and written back out. Often whitespace is preserved so the output is identical to the input if it is not modified. This generality comes at a cost: large memory requirements (often more than double the input size) and slow read and write. For applications that read the XML data for only specific pieces of information, there are better alternatives.


Full post on Dr Dobb's