RFR: JDK-8002152: javadoc could write out files on a worker thread [v3]
Pavel Rappo
prappo at openjdk.java.net
Mon Mar 15 16:31:10 UTC 2021
On Mon, 15 Mar 2021 14:43:34 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:
> the benefits quite solid, and the problems not unsurmountable
I wouldn't call the benefits I saw on my personal machine solid. But then again, I'm not sure how to properly benchmark and evaluate results of that benchmarking for a change like this.
> Pavel, how exactly does `HtmlDocument.write()` access mutable objects like `JavacFileManager`?
`DocFile.openWriter` invokes `BaseConfiguration.getOptions` and `JavaFileManager.getFileForOutput` on objects which are not thread-safe.
I think we should consider alternative routes of improving performance. For instance, could NIO both speedup I/O and simplify code?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2665
More information about the javadoc-dev
mailing list