logo       

[jira] Updated: (COMPRESS-82) cpio is terribly slow: msg#00416

issues-commons-apache

Subject: [jira] Updated: (COMPRESS-82) cpio is terribly slow


[
https://issues.apache.org/jira/browse/COMPRESS-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

deckrider updated COMPRESS-82:
------------------------------

Attachment: cpio-speed-patch.txt

It seems that the attached patch fixes the speed issue.

I'm not familiar with java.io that much. I thought just switching to
java.io.BufferedOutputStream would be sufficient, but I had to use flush() or
it broke things.

Hopefully someone more experienced can translate this patch to a more correct
way of handling the issue.

> cpio is terribly slow
> ---------------------
>
> Key: COMPRESS-82
> URL: https://issues.apache.org/jira/browse/COMPRESS-82
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: linux java6
> Reporter: deckrider
> Attachments: cpio-speed-patch.txt
>
>
> I have a directory with 20 jar files in it to be placed into a cpio archive.
> This seems VERY slow (about 3 minutes). It is almost immediate with the
> linux cpio command (of course its non-java). is there any way to improve
> speed for the cpio archiving?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise