This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
see attached stacktrace, on every symbol entered in the editor I see filesystem access in EDT. This could be very slow if NFS is used.
Created attachment 124230 [details] stacktrace
more of that, RepositoryUpdater.getOwningSourceRoot from the stack trace is always called for (jar:file:/ssd/work/cnd-main/nbbuild/netbeans/ide/jsstubs/allstubs.zip!/) which has nothing to do with the source file opened
>see attached stacktrace, on every symbol entered in the editor I see filesystem >access in EDT. This could be very slow if NFS is used. Not true, it's done just once per single Document, then it's cached as document property.
that may be file type dependent, I checked it for c files, I will recheck for java and other files
true, in java files it does not trigger on every symbol entered
the problem with cnd files is that getOwningSourceRoot is always null for them so there is nothing to cache and so we recheck it every time
In this case there is nothing to cache and the cache is empty. For non c files it's done just once per document. I can add a tombstone into cache to detect the Documents for which there is no need to do the checking. In this case even for c files it will be called once. I am also examining the URLArchiveMapper why it does the isFile call and if it's possible to remove it. According to dtrace the URLMapper.getFileObject() always do disk touch for archives and non existent files. The second is understandable but the first should be fixable.
Fixed jet-main 1b0f40db6fa0. The allstubs.zip no more accessed.
Integrated into 'main-golden', will be available in build *201209200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/1b0f40db6fa0 User: Tomas Zezula <tzezula@netbeans.org> Log: #218203:Accessing file system in EDT: File.isDirectory on every symbol entered
Handling even non existent roots, jet-main af5328a47ab4
Integrated into 'main-golden', will be available in build *201209210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/af5328a47ab4 User: Tomas Zezula <tzezula@netbeans.org> Log: #218203:Accessing file system in EDT: File.isDirectory on every symbol entered