I divides the zip into N streams where N=number of cpu cores. Subsequently files are submitted round-robin to each stream (it's actually fork-join with work-stealing on java7). Each stream is written to memory with an offload to disk if it grows too large. When all streams are done they are merged back into a single well formed zip file.
This is totally zero-config and cannot be disabled :) Any users of plexus-archiver can get this feature by simply upgrading to version 2.10 (and plexus-io 2.5). This includes war and jar plugin too. Kristian 2015-04-27 20:45 GMT+02:00 Michael Osipov <[email protected]>: > Am 2015-04-27 um 20:39 schrieb Kristian Rosenvold: > >> The Apache Maven team is pleased to announce the release of the Apache >> Maven Assembly Plugin, version 2.5.4 >> >> The Assembly Plugin for Maven is primarily intended to allow users to >> aggregate >> the project output along with its dependencies, modules, site >> documentation, >> and other files into a single distributable archive. >> >> This release is mostly a bugfix release, but due to MASSEMBLY-764 we >> also gained multithreaded ZIP compression, which should especially >> benefit users with large zip files. >> > > This works by default and requires no further config? How does the logic > decide that divide and conquer will gain a speedup? > > Michael > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
