Reuse JAXBContext instance (Slow mapping initialization)

Description

I tried to migrate from 4.3.11 to 5.0.0 Final, but the time needed for mappings during start-up has dramatically increased.
In 4.3.11 takes 2 seconds, and in 5.0.0 Final needs 8-9 seconds.

  • I'm using plain Java SE (I do not use Spring or other framework).

  • I updated the code, I took the code from the tutorial

  • I made several tests modifying my configuration options with no luck

  • I did a deep debugging and the most time consuming call was

    in jaxb() function from org.hibernate.boot.jaxb.internal.AbstractBinder

Debug for 4.3.11

Debug for 5.0.0 Final

Environment

Hibernate ORM 5.0.0 Final, MySQL 5.6

Status

Assignee

Steve Ebersole

Reporter

IvanRF

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure