RFR: 8352642: Set zipinfo-time=false when constructing zipfs FileSystem in com.sun.tools.javac.file.JavacFileManager$ArchiveContainer for better performance [v3]

Jan Lahoda jlahoda at openjdk.org
Tue Apr 22 13:14:45 UTC 2025


On Thu, 27 Mar 2025 23:52:00 GMT, Jason Zaugg <jzaugg at openjdk.org> wrote:

> Noting that I found `jarFsProvider` to be a useful extension point (albeit in undocumented API) for injecting performance improvements into existing `javac` versions (both the `zipinfo-time` change, and further changes to defer the `close` of `ZipFileSystem` over JARs known to be immutable).

I'll note this is not the correct approach. This is not only an undocumented API. This is an implementation detail, subject to change at any time for any reason. javac supports running with a custom `JavaFileManager`, which can provide caching implementations for any queries, as desired.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24176#discussion_r2054089055


More information about the compiler-dev mailing list