BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Your vote is your voice. Use your voice. Login and vote now.
Link 735945 thumbnail
User 976429 avatar

By Psant
via code.rawlinson.us
Published: Jan 30 2012 / 10:58

Today I was given a fairly large XML file (roughly 32 Mb) that I needed to parse in order to see if there was a match between a concatenation between two node values and the contents of a separate file that had comma separated values in it. Always looking for an excuse to use a different language than I normally do I decided to attack this in Ruby because I remember it being particularly good at handling File IO. I'm going to present two solutions to this problem here. I'm sure they can both be improved. However, the second solution was the one I settled on because it is substantially more performant.
  • 4
  • 0
  • 526
  • 209

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (4)



Voters Against This Link (0)