users@jaxb.java.net

Re: Making JAXBContextImpl serializable

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 07 Nov 2006 14:05:27 -0800

Kenny MacLeod wrote:
> That's pretty much the same hotspots I got from profiling my schema (570
> XJC-generated types), although the balance is slightly different.
>
> Around 45% spent in ModelBuilder.getTypeInfo(Ref), which drills down to
> 37% spent in ModelBuilder.getClassInfo(Object, Locatable).
>
> The other big one is 37% spent in
> JAXBContextImpl.getOrCreate(RuntimeClassInfo).
>
> So it looks like reflection is the prime offender here, if I'm
> understanding this correctly. Like Eric, my profiling skills is not
> extraordinary.

If you can send your profiler data file, that would be really great.
Having more data is very important for not over-adopting to a particular
schema.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com