Assertfail

All Posts assertfail

View the Blog on GitHub wallymathieu

Funky xml log

25 Sep 2012

I had some trouble where a simple parser would take a bit of time. Turns out that there were many ways of improving this performance. I rewrote it to use the xml reader instead to be able to do these improvements. Some funky bugs got squished. The reader is a bit low level compared to niceties such as Nokogiri (in hindsight, maybe I should have been using). By using this class I could avoid some funkyness of XmlDocument having to cope with wierd xml at the expense of having less appealing code: LogEntryParser.

Tags

  • log
  • xml
  • Comments or errors? Fork post and do a pull request on github