Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 37747 invoked from network); 2 Sep 2004 02:59:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Sep 2004 02:59:27 -0000 Received: (qmail 14776 invoked by uid 500); 2 Sep 2004 02:59:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 14677 invoked by uid 500); 2 Sep 2004 02:59:25 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Derby Development" Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 14663 invoked by uid 99); 2 Sep 2004 02:59:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [62.24.64.34] (HELO smtp.dkm.cz) (62.24.64.34) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 01 Sep 2004 19:59:23 -0700 Received: (qmail 7255 invoked by uid 0); 2 Sep 2004 02:59:20 -0000 Received: from lin.code.cz (HELO ?192.168.0.2?) (62.245.69.249) by smtp.dkm.cz with SMTP; 2 Sep 2004 02:59:20 -0000 Message-ID: <41368CD7.3060700@code.cz> Date: Thu, 02 Sep 2004 05:00:39 +0200 From: =?ISO-8859-1?Q?Jan_Hlavat=FD?= User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: java1.4.2 "rws" mode fix: LogToFile.java diff References: <6A8D4356-FBDD-11D8-A91C-000D93ADDBD4@serv.net> <4136691B.7030204@Source-Zone.org> In-Reply-To: <4136691B.7030204@Source-Zone.org> X-Enigmail-Version: 0.85.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Suresh Thalamati wrote: | . Preallocation of the log file by doing writes to a file opened in | "rws" mode will be much slower than doing writes to file opened in | "rw" mode . I have a trick for this - instead of writing whole file, write a single block on the end (last block) - that will create the big file faster, rws or not ;-) Rest of file gets zeroed out on windows, dunno about other platforms (it's unspecified). Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQEVAwUBQTaM13FDePgyse5HAQLTywgAm55JxXGhpl3QJ9etkkcTM+fyU5ic4MI7 DUCOic545R45hSZEfF1qmgTvwxfmheVoZ1iuRGgwvuuxHkKfLhvLBF+VxGRO9I8w jQsE5LpC1TmMcpDhVciQMcxVm1VS5ROb+J8vQpGa/5bFQlrXplDmSrqIvX4jzfBQ DtNAaTLqmX4O6AVaYgLQ5DRJIf5C+Kie2L3RGAi+P1tbOjLikVovhX6SlvvnCJk/ v6qedzDhXfBejI9DUoA3EArMiP+7Ch8IGhjY8mH0kCs2tDtpQ3I6Mc+WAXhov7iY OH1r7uxFHjMHSKzyBUk7rDBYXYpgFdxbXGCTTvWDJKO+IqC/0YVS+w== =DhPw -----END PGP SIGNATURE-----