Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 077F6795E for ; Fri, 5 Aug 2011 12:50:17 +0000 (UTC) Received: (qmail 81635 invoked by uid 500); 5 Aug 2011 12:50:16 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 81449 invoked by uid 500); 5 Aug 2011 12:50:15 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 81433 invoked by uid 99); 5 Aug 2011 12:50:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 12:50:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2011 12:50:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id A7B26289801D for ; Fri, 5 Aug 2011 14:49:47 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qGZg0oFAKgqv for ; Fri, 5 Aug 2011 14:49:47 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 506AD289801E; Fri, 5 Aug 2011 14:49:47 +0200 (CEST) From: Stefan Bodewig To: dev@commons.apache.org Subject: Re: [compress] ZIP64: API imposed limits vs limits of the format References: <87aabp1bd1.fsf@v35516.1blu.de> X-Draft-From: ("nnfolder:mail.jakarta-lib" 167261) Date: Fri, 05 Aug 2011 14:49:47 +0200 In-Reply-To: (Torsten Curdt's message of "Thu, 4 Aug 2011 17:03:56 +0200") Message-ID: <87wresauqc.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 2011-08-04, Torsten Curdt wrote: >> ZipFile relies on RandomAccessFile so any archive can't be bigger than >> the maximum size supported by RandomAccessFile. =C2=A0In particular the = seek >> method expects a long as argument so the hard limit would be an archive >> size of 2^63-1 bytes. =C2=A0In practice I expect RandomAccessFile to not >> support files that big on many platforms. > Yeah ... let's cross that bridge when people complain ;) With that I can certainly live. >> For the streaming mode offsets are currently stored as longs but that >> could be changed to BigIntegers easily so we could reach 2^64-1 at the >> expense of memory consumption and maybe even some performance issues >> (the offsets are not really used in calculations so I don't expect any >> major impact). > No insights on the implementation but that might be worth changing so > it's in line with the ZipFile impl ZipFile is already limited to longs via RandomAccessFile. >> I'm confident that even I would manage to write an efficient singly >> linked list that is only ever appended to and that is iterated over >> exactly once from head to tail. > +1 for that then :) Lasse's post showing that I'd need 100+ GB of RAM to take advantage of my bigger LinkedList made me drop that plan 8-) If anybody is really dealing with archives that big they likely don't use Commons Compress and if they do then support for archives split into multiple files might be more important. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org