Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 38415 invoked from network); 20 Jul 2009 01:35:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jul 2009 01:35:31 -0000 Received: (qmail 28859 invoked by uid 500); 20 Jul 2009 01:36:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 28807 invoked by uid 500); 20 Jul 2009 01:36:37 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 28798 invoked by uid 99); 20 Jul 2009 01:36:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 01:36:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 01:36:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E9D3329A0014 for ; Sun, 19 Jul 2009 18:36:14 -0700 (PDT) Message-ID: <1005404534.1248053774956.JavaMail.jira@brutus> Date: Sun, 19 Jul 2009 18:36:14 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-6200) [classlib][luni] - add cache for file's canonical path In-Reply-To: <586161048.1241684372510.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu resolved HARMONY-6200. ------------------------------- Resolution: Fixed Patch HARMONY-6200.v2.diff applied at r794945 > [classlib][luni] - add cache for file's canonical path > ------------------------------------------------------ > > Key: HARMONY-6200 > URL: https://issues.apache.org/jira/browse/HARMONY-6200 > Project: Harmony > Issue Type: Sub-task > Components: Classlib > Affects Versions: 5.0M9 > Reporter: Regis Xu > Assignee: Regis Xu > Attachments: HARMONY-6200.diff, HARMONY-6200.v2.diff > > > File.getCanonicalPath is very time cost and is heavily used by checking file permission. But in the most of cases, the canonical path is never change, it's better to cache them to avoid calculate every time. And I found RI also has cache: File.getCanonicalPath doesn't reflect change in file system real-time. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.