Search |
||
XMLGregorianCalendar improvementPosted by kohsuke on August 26, 2005 at 3:18 PM PDT
Friday has always been a good time for making performance improvements for me, for some reason. Today, its target was javax.xml.datatype.XMLGregorianCalendar class.
One of our internal benchmark identified this as a hotspot for JAXB, because when a schema uses xs:dateTime or some such datatype, we're binding it to XMLGregorianCalendar. So I looked at its parsing code and the printing code. On parsing side...
On printing side...
My trust to profilers are really fading these days. For example, profiler didn't point me to any of those optimizations. It's more or less the common sense and trial and error, which led me to those improvements. I guess profilers are good at narrowing down places to look at (especially if you are working on a large codebase), but you shouldn't trust profilers too much. All in all I was able to make the parsing 150% faster and printing 400% faster. Not a bad gain for a few hours of hacking, don't you think? »
Related Topics >>
Java Web Services and XML Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|