r/java • • Jul 31 '26

Modular Uberjars

https://github.com/bowbahdoe/modular-uberjars
23 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/agentoutlier Jul 31 '26 edited Jul 31 '26

Yeah I know they are zip but I recall something about them or someone testing it or maybe it was just the native libraries being there. Maybe its just the link time stuff happening compared to when you had to call System.loadLibrary. Maybe collocation of files.

I can't find the benchmark google wise but someone had a jlink application, a regular java classpath, and few other combinations with native libraries.

EDIT I guess you have to jimage to have the performance gains.

1

u/bowbahdoe Jul 31 '26

One thing in the back of my head: class loading from a sqlite database. Would it make sense? Would it be fun? I consider those separate questions