Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 092F9108F1 for ; Fri, 12 Jul 2013 00:57:50 +0000 (UTC) Received: (qmail 7167 invoked by uid 500); 12 Jul 2013 00:57:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 7061 invoked by uid 500); 12 Jul 2013 00:57:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 6912 invoked by uid 99); 12 Jul 2013 00:57:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jul 2013 00:57:49 +0000 Date: Fri, 12 Jul 2013 00:57:49 +0000 (UTC) From: "BELUGA BEHR (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (COMPRESS-234) Patch: TAR InputStream Huge Speed Improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] BELUGA BEHR updated COMPRESS-234: --------------------------------- Attachment: TarBuffer.java.patch TarArchiveInputStream.java.patch > Patch: TAR InputStream Huge Speed Improvements > ---------------------------------------------- > > Key: COMPRESS-234 > URL: https://issues.apache.org/jira/browse/COMPRESS-234 > Project: Commons Compress > Issue Type: Improvement > Components: Archivers > Reporter: BELUGA BEHR > Attachments: TarArchiveInputStream.java.patch, TarBuffer.java.patch > > > I have looked over TarBuffer And TarArchiveInputStream and found some ways to improve performance orders of magnitude. > I used a 1 GB TAR archive file (no compression). > Times for reading all entry file names: > Current - 630ms > Mine - 17ms > Times for extracting all entry files: > Current 2446ms > Mine - 2214ms > As you can see, I have enhanced the "skip" methods greatly. Actual extraction was within an margin of error as the times bounces around a lot. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira