Skip to content

Conversation

wittrock
Copy link
Contributor

Previously, source file entries were polluted in the cache that speeds up directory traversal. Instead of putting only a single directory's source files in the cache, we were entering the source files for (potentially) the entire crate.

Fix: only store source files for the current directory, not the whole crate.

Test: proved that Fuchsia's corpus has no more errors like "source_file does not have a required_input entry"

Previously, source file entries were polluted in the cache that speeds
up directory traversal. Instead of putting only a single directory's
source files in the cache, we were entering the source files for
(potentially) the entire crate.

Fix: only store source files for the current directory, not the whole
crate.

Test: proved that Fuchsia's corpus has no more errors like
"source_file does not have a required_input entry"
Copy link
Contributor

@sam-mccall sam-mccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sam-mccall
Copy link
Contributor

/gcbrun

@varunmahajan varunmahajan merged commit 03c4b6c into kythe:master May 21, 2025
4 checks passed
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