Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73BA99F82 for ; Wed, 9 May 2012 13:29:25 +0000 (UTC) Received: (qmail 55672 invoked by uid 500); 9 May 2012 13:29:25 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 55618 invoked by uid 500); 9 May 2012 13:29:25 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 55608 invoked by uid 99); 9 May 2012 13:29:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 13:29:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [87.253.162.5] (HELO server5.configcenter.info) (87.253.162.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 13:29:15 +0000 Received: from [9.155.131.51] (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: web445p1) by server5.configcenter.info (Postfix) with ESMTP id 344721BB0AAF for ; Wed, 9 May 2012 15:28:48 +0200 (CEST) Message-ID: <4FAA710D.1030605@a-w-f.de> Date: Wed, 09 May 2012 15:28:45 +0200 From: Andre Fischer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Why is creating pack sets so slow? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (server5.configcenter.info [0.0.0.0]); Wed, 09 May 2012 15:28:48 +0200 (CEST) X-server5-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 344721BB0AAF.A2DFD X-server5-MailScanner: Found to be clean X-server5-MailScanner-From: af@a-w-f.de X-Old-Spam-Status: No I would like to share some numbers (and some rants) with you. Now that the release is done, I looked a little closer at why the creation of pack sets takes so long (the things that are created in main/instsetoo_native). Here are some numbers for the creation of the archive on Windows7. The absolute numbers are entirely unrepresentative but I think they illustrate the general problem. The whole process of creating the archive pack set took 5 minutes and 29 seconds (=329s). This includes: - unzipping of 61 archives: 42s - copying of 3014 files to temporary directory: 105s - changing access privileges of files in temp. directory: 79s - creating the archive pack set: 31s - deletion of temporary files: 7s I think that everything except the 31s for creating the actual archive is not really necessary. 42s+105s+79s+7s=233s or 71% out of the total of 329s are spent on unzipping archives that have been created earlier in the build process and on copying files to yet another directory that have already been copied (delivered) once or twice into main/solver/. A lot of time could be saved if a) we would not create zip files in some modules (like helpcontent2) just to unpack them (before the packing them again into the final archive.) b) our modules would deliver files to places that could directly be used in the final packaging. (Which, as I thought, was one of the key ideas of the "new" gbuild system. What became of that?) I know that it will not really be that simple. Localization files for example can not be copied into their final place for all languages at the same time. I hope that I will find the time to come up with some concrete ideas of how to improve the current system (I have no intention to completely rewrite it). Comments, suggestions and explanations (about the status quo) are welcome. Andre