Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Use
fast_relpath_optional
for source root calculation in…
… `local_dists`. (#13091) This usage of `os.path.relpath` was showing up in profiles: it's a notoriously expensive function due to its support for relativizing non-contained paths, and use of `os.getcwd` (which releases the GIL to execute a syscall, and then needs to re-acquire it). Switch to `fast_relpath_optional`. [ci skip-rust] [ci skip-build-wheels]
- Loading branch information