Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6870926
Votes 0
Synopsis (file) Path.toRealPath performance can be improved (win)
Category java:classes_nio
Reported Against
Release Fixed 7(b71)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs
Submit Date 12-AUG-2009
Description
The toRealPath method has a number of performance issues that should be fixed:

1. On Vista/newer it uses GetFinalPathNameByHandle to get the final path with all symbolic links resolved. This Win32 call requires opening the file and is slower than the fallback implementation for common case that the path does not contain any symbolic links.

2. On XP or when GetFinalPathNameByHandle fails, the implementation always checks that the root directory exists. This is expensive and not required for the case that the path has one or more name components (because the directory search to get the actual name requires that the root directory exist).

2. On XP or when GetFinalPathNameByHandle fails, the implementation always calls GetFullPathName to collapse . and .. but this is not required when . is not present.
Posted Date : 2009-08-12 12:45:18.0
Work Around
N/A
Evaluation
As per evaluation.
Posted Date : 2009-08-18 14:03:27.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang