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.
View all comments
Show parent comment
1
u/bowbahdoe Jul 31 '26
I don't think jmods are more efficient. I'm pretty sure they are just zip files too. But yes, within reason, you can use JMODs.
You would need to implement extracting the native libraries at runtime though.