On Mon, 15 Nov 2021 18:47:34 GMT, Andrew Leonard <aleon...@openjdk.org> wrote:
> Both jar and jmod utilise java.io file operations whose methods define no > ordering of the return file lists, and in fact rely on OS query file > ordering, which can differ by underlying OS architecture. > This PR adds sort processing to the creation of such jar's and jmod's to > enable a deterministic content ordering. > > Signed-off-by: Andrew Leonard <anleo...@redhat.com> I have tried a couple of performance tests, running a jar of a significant size, repeatedly 100x, results show a 1% difference, although there was some variance on running this several times +/- 5 seconds. For 100x jar creation of 16,000 files: Previously : 499 seconds With patch: 504 seconds ------------- PR: https://git.openjdk.java.net/jdk/pull/6395