[jboss-dev-forums] [JBoss XML Binding Development] - Re: XB profiling during the AS start-up

jason.greene@jboss.com do-not-reply at jboss.com
Wed Sep 30 12:28:59 EDT 2009


"alex.loubyansky at jboss.com" wrote : "adrian at jboss.org" wrote : anonymous wrote : 
  |   |   | jaxb parsers had been generated and compiled before the test run.
  |   | 
  |   | Ok, so what is fast jaxb doing that it is 3 times slower on the first iteration
  |   | (even though you have already pre-generated classes)?
  |   | Is it parsing the xml schema or something? Are you comparing apples to apples?
  | 
  | I actually can't comment at the moment of what the bottleneck is. Maybe I'm missing something, but it looks to me like apples to apples.
  | At least that's how a simple parsing client is supposed to use the API.

Perhaps it's something like Adrian suggests where the fast-jaxb classes are using schema validation. It just doesn't make sense that a pregenerated parser would be slower than a dynaimc reflection based model. The pregenerated version has less work to actually do, and it can do direct method invocation as opposed to reflection which is definitely faster.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257926#4257926

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257926



More information about the jboss-dev-forums mailing list