Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change pathTrie per-file to per-directory #1931

Merged
merged 3 commits into from
Nov 10, 2024

Conversation

jbedard
Copy link
Contributor

@jbedard jbedard commented Sep 22, 2024

Now the pathTrie aligns with the directory tree, not full fs tree which includes files. Aligning with the directory tree makes more sense to me, and I think will make it simpler to do things like load BUILDs concurrently while doing the fs-traversal (and persisting that in the pathTrie) etc.

What type of PR is this?

Other

What package or component does this PR mostly affect?

all

What does this PR do? Why is it needed?

Performance + simplifying things for future changes.

@jbedard jbedard force-pushed the trie-per-dir branch 2 times, most recently from 3059c4a to 1766140 Compare September 22, 2024 02:58
@jbedard jbedard marked this pull request as ready for review October 21, 2024 20:22
@jbedard jbedard marked this pull request as draft October 23, 2024 21:23
@jbedard jbedard force-pushed the trie-per-dir branch 2 times, most recently from e2dfe45 to 572327d Compare October 27, 2024 01:16
@jbedard jbedard marked this pull request as ready for review October 27, 2024 01:16
walk/walk.go Show resolved Hide resolved
walk/walk.go Outdated Show resolved Hide resolved
@jbedard
Copy link
Contributor Author

jbedard commented Nov 9, 2024

Windows is broken? 😒

@fmeum fmeum merged commit ed19735 into bazel-contrib:master Nov 10, 2024
14 checks passed
@fmeum
Copy link
Member

fmeum commented Nov 10, 2024

Fixed it on master and rebased

@jbedard jbedard deleted the trie-per-dir branch November 10, 2024 22:22
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.

2 participants