Re: CPIO archives

Yannick Menager <yannick-RlQSXRdP1wRWk0Htik3J/[email protected]> Wed, 26 Nov 2003 19:09:42 +0000
Newsgroups gmane.comp.java.jrpm.devel
Message-ID <[email protected]>
The problem is that putting the archives in memory will eat up too much 
memory.

I guess a solution would be to allow to configure if the RPMFile should 
use archive in memory or on disk

Michael Kuß wrote:

>Hi Yannick,
>
>I have some suggestions (no offence intended) regarding the cpio handling:
>
>1. the CPIOPayloadArchive should read the data from an InputStream or
>   DataInputStream, so that a rpm file can be read continuously.
>2. The CPIOPayloadArchive should not write to the disk unasked. So the
>   the data should be held in memory. It would help to make some actions
>   faster (e.g. list of all files, calculate signatures, ...)
>3. We should use BufferedInputStream wherever an InputStream is initialized.
>   I have tested on a large rpm file (ca. 70 MB) and it was very slow.
>
>I can do some work there but I don't want to conflict with your changes.
>
>I have also played with the idea to include a text formatter for the
>datatypes so
>that displaying these can be configured. But at the moment I have no good
>idea
>how to solve this.
>
>And there is also the regular work to do. Like cleaning up the flat *sigh*.
>
>Greets,
>   Micha
>
>  
>




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/