Using CGLIB to speed up XML parsing
Oct 21, 2003 16:01 · 74 words · 1 minute read
Good stuff from Chris Nokleberg… using CGLIB to make SAX parsing zippy:
For validated documents this is safe and gives a 3X speedup.
I don’t think I’d be likely to use the if/else if/else if structure that he mentions, because that seems like the kind of thing that is screaming out for separate objects. I believe Fowler even has a refactoring for this, but it’s too early in the morning to recall which one.