Skip to content

Conversation

dumbbell
Copy link
Contributor

@dumbbell dumbbell commented Jul 8, 2025

WIP: the pull request is based on another topic branch, only the last commit is relevant in the branch will be rebased once the other commits are reviewed and merged.

We do this by avoiding calling core_native_path in dep_fetch_hex many times.

On Windows, this executes a shell to determine the native path, which is very expensive. The result is always the same, so make sure core_native_path is called once instead.

For example, this saves a significant amount of time when compiling RabbitMQ on Windows.

@dumbbell dumbbell force-pushed the optimize-dep_fetch_hex-on-windows branch 3 times, most recently from 6d857af to 9bc843c Compare July 8, 2025 18:18
@dumbbell
Copy link
Contributor Author

dumbbell commented Jul 8, 2025

The patch is ready. I don’t mark it as ready for review yet because it is based on the branch for #1035.

@dumbbell dumbbell force-pushed the optimize-dep_fetch_hex-on-windows branch from 9bc843c to aff3f45 Compare July 23, 2025 06:57
On Windows, this executes a shell to determine the native path, which is
very expensive. The result is always the same, so make sure
`core_native_path` is called once instead.

For example, this saves a significant amount of time when compiling
RabbitMQ on Windows.
@dumbbell dumbbell force-pushed the optimize-dep_fetch_hex-on-windows branch from aff3f45 to 94dba57 Compare July 25, 2025 10:18
@dumbbell dumbbell marked this pull request as ready for review July 25, 2025 13:17
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.

1 participant