Fw: Patch for File Scanning

Mike Skells mike.skells at talk21.com
Mon Oct 10 01:06:59 PDT 2011

Hi Alan,
yes the Javadoc is not correct - not sure how that happened. When I checked it I though that I was adding the [a] 

will respond to the other issue in another post to continue the thread



>From: Alan Bateman <Alan.Bateman at oracle.com>
>mike.skells at talk21.com wrote: 
have a few optimisations that I have found in nio2 Path Scanning.
found these during the scanning phase of the jar improvements that I
have been working on
>>The changes only really affect the first few runs thorough
the code, and after the scan of the first 20K files there is not much difference, however this does mean a significant improvement for small
utility apps (e.g. jar). Most of the improvement were if the path
scanning (removing as string+=string that could be optimised), and
changes to the WindowsPathWithAttributes 
>>A change that I am not sure about is  - there was a
WeakReference to the attributes which I have set to final in this
patch, but there may be some subtlety that I am missing
Mike - I don't have cycles to examine the patch in detail just now but
I wonder about the changes to Files. Your change means that Filter is
eagerly loaded which isn't desirable. Also the changes to the javadoc
don't look right - did you mean to change the javadoc?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20111010/22070e69/attachment.html 

More information about the nio-dev mailing list