RFR: JDK-8002152: javadoc could write out files on a worker thread [v3]
Pavel Rappo
prappo at openjdk.java.net
Tue Mar 16 12:51:09 UTC 2021
On Tue, 16 Mar 2021 05:23:31 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> > I think we should consider alternative routes of improving performance. For instance, could NIO both speed up I/O and simplify code?
>
> I don't understand the NIO comment. Under the covers, JavaFileManager uses NIO and has for some time.
Indeed, `JavacFileManager` and friends seem to already use NIO in some places. Perhaps we could improve those parts of JavaDoc that copy files in read-write loops: `DocFile.copyFile(...)` and `DocFile.copyResource(...)`. When no transformation is required, files can be copied using bigger NIO blocks such as `java.nio.file.Files.copy(...)`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2665
More information about the javadoc-dev
mailing list