Skip to content

Conversation

@bcorso
Copy link

@bcorso bcorso commented Jan 12, 2026

For context, see https://youtrack.jetbrains.com/issue/KT-83191.

This CL adds Guava CacheBuilder to CliVirtualFileFinder and KotlinCliJavaFileManagerImpl. These caches map the package name to the children in the package across all roots/jars and avoids having to iterate through all jars on subsequent calls. This can drastically improve build performance for cases with a large number of roots/jars that have overlapping packages.

For context, see https://youtrack.jetbrains.com/issue/KT-83191.

This CL adds Guava CacheBuilder to `CliVirtualFileFinder` and
`KotlinCliJavaFileManagerImpl` to cache the relevant files in a given
package across all roots/jars. This can drastically improve build
performance for cases with a large number of roots/jars that have
overlapping packages.
@bcorso bcorso requested a review from a team as a code owner January 12, 2026 19:26
@demiurg906 demiurg906 requested review from mglukhikh and removed request for demiurg906 January 15, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants