Comes as a part of the umbrella issue #177274 (the slowness in GoTo type) where 1.5s from 4.7s is spent in ArchiveURLMapper.
Jarda had an idea of creating the root FileObject without need to mount the JarFS when the list on it is done the JarFS will be mounted.
The ArchiveURLMapper shall return the FileObject without opening the JAR. This can be done by improvements in JarFileSystem, possibly with some new API, or by creating a virtual FileObject that will later create and delegate to JarFileSystem.getRoot().
Let's do this.
Created attachment 93416 [details]
New constructor for JarFileSystem
Review this addition of new JarFileSystem constructor and its use in ArchiveURLMapper.
Let's do it tomorrow.
Integrated into 'main-golden', will be available in build *201001271614* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Tulach <email@example.com>
Log: #177461: Now it is possible to create a JAR file and get its root URL without opening it. Shall speed up go to type dialog responses.
New fix in core-main#5695b06e572c
Integrated into 'main-golden', will be available in build *201005040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)