Christoph Dreis (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDg0OGQzNTA5...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-15586?atlOrigin=eyJpIjoiMDg0OG...
) HHH-15586 (
https://hibernate.atlassian.net/browse/HHH-15586?atlOrigin=eyJpIjoiMDg0OG...
) Reduce size of hibernate-core JAR (
https://hibernate.atlassian.net/browse/HHH-15586?atlOrigin=eyJpIjoiMDg0OG...
)
Change By: Christoph Dreis (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Hi,
it happens quite frequently that I’m contacted internally that our fat JARs are too large
and consume too much storage, bandwidth etc. in our entire ecosystem. (In total obviously.
A single fat JAR is not too large, but hundreds of builds accumulate after all)
One - if not THE - top 3rd party consumer in our fat JARs was and still is Hibernate. It’s
a whopping 7MB large on 5.6.x and 6.1.x hasn’t really made it better. On the contrary,
6.1.x is at 9MB already.
In typical Spring-Boot apps of us, this is the TOP 10 of external libraries.
{noformat}7,1M hibernate-core-5.6.10.Final.jar
5,4M scala-library-2.13.0.jar
4,1M modelmapper-3.1.0.jar
3,7M byte-buddy-1.12.13.jar
3,5M swagger-ui-4.11.1.jar
2,6M guava-30.1.1-android.jar
2,3M undertow-core-2.2.19.Final.jar
2,1M commons-math3-3.6.1.jar
2,0M spring-data-redis-2.7.2.jar
2,0M aspectjweaver-1.9.7.jar{noformat}
As you can see Hibernate takes the top position here. With Hibernate 6 even by a larger
margin.
Is there anything you can do to reduce this? E.g. is hibernate-core really {{core}} enough
or is it containing too much stuff the average user doesn’t need 99% of the times time ?
Cheers,
Christoph
(
https://hibernate.atlassian.net/browse/HHH-15586#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15586#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100207- sha1:591c2ef )