[izpack-devel] A very slow installation when the same files exist in more than one pack
Julien Ponge
julien.ponge at gmail.com
Tue Jan 29 08:14:06 CET 2008
Hi Piotr,
> The questioned fragment of code can be found in Unpacker#run() around
> line 260,
> and it looks like this:
> InputStream is = getPackAsStream(pf.previousPackId, pack.uninstall);
> pis = new ObjectInputStream(is);
> is.skip(pf.offsetInPreviousPack - 4); // <-- very slow on big files!
You may attempt to read() to a useless buffer, but I wonder if skip()
doesn't exactly do that already...
Cheers
More information about the izpack-devel
mailing list