Skip to content

Optimize the computation of lib_path #4982

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

Merged
merged 2 commits into from
Apr 27, 2018
Merged

Optimize the computation of lib_path #4982

merged 2 commits into from
Apr 27, 2018

Conversation

msullivan
Copy link
Collaborator

The main thing is to compute base library directories while finding
sources, since we already have a cache to avoid duplicated file-system
traversal work there. Also eliminate some unnecessarily quadratic
stuff.

Follow up to #4981. This might have been one PR, but I'd like to cherry-pick just the original correctness patch.

The main thing is to compute base library directories while finding
sources, since we already have a cache to avoid duplicated file-system
traversal work there. Also eliminate some unnecessarily quadratic
stuff.
I don't think it does anything useful anymore?
Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Glad to see both an performance improvement and net negative lines!

@JukkaL JukkaL merged commit 991edf2 into lib_path_fix Apr 27, 2018
msullivan added a commit that referenced this pull request Apr 27, 2018
msullivan added a commit that referenced this pull request Apr 27, 2018
The main thing is to compute base library directories while finding
sources, since we already have a cache to avoid duplicated file-system
traversal work there. Also eliminate some unnecessarily quadratic
stuff.

Also get rid of remove_cwd_prefix_from_path.
@msullivan msullivan deleted the lib_path_opt branch April 27, 2018 18:58
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