JAXB Performance boost via saving generated accessors
-----------------------------------------------------
Key: TOMEE-143
URL: https://issues.apache.org/jira/browse/TOMEE-143
Project: TomEE
Issue Type: Improvement
Reporter: David Blevins
The JAXB RI itself will use reflection to generate accessor classes. We use
JAXB for reading all descriptors. The result is a below 1 second startup is
impossible unless JAXB can be optimized:
This call alone takes over 1 second:
JAXBContextFactory.newInstance(
Application.class,
ApplicationClient.class,
Beans.class,
Connector.class,
EjbJar.class,
FacesConfig.class,
HandlerChains.class,
JavaWsdlMapping.class,
Persistence.class,
TldTaglib.class,
WebApp.class,
WebFragment.class,
Webservices.class,
ValidationConfigType.class,
EntityMappings.class,
OpenejbJar.class,
org.apache.openejb.jee.jpa.unit.Persistence.class,
PersistenceFragment.class
);
Simply saving the generated JAXB classes maybe be the way to avoid this
reflection overhead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira