Your vote is your voice. Use your voice. Login and vote now.
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.



Add your comment