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

Don't change ruby process CWD when building extensions #3498

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

deivid-rodriguez
Copy link
Member

Description:

This leads to simpler code because we don't need to maintain a mutex to ensure thread safety.

Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

@eregon
Copy link
Contributor

eregon commented Oct 1, 2020

This looks great!
It should enable to build C extensions in parallel which could lead to very nice speedups for large Gemfiles.

@deivid-rodriguez
Copy link
Member Author

I had forgotten about this. I rebased it!

@deivid-rodriguez deivid-rodriguez marked this pull request as ready for review October 2, 2020 09:17
Copy link
Contributor

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@deivid-rodriguez deivid-rodriguez force-pushed the thread_safe_extension_building branch 2 times, most recently from caa1f1d to d6fbc31 Compare October 5, 2020 18:27
Change it in subprocesses, so it's thread safe.
@deivid-rodriguez
Copy link
Member Author

Let's do it!

@deivid-rodriguez deivid-rodriguez merged commit 8b50ccf into master Oct 6, 2020
@deivid-rodriguez deivid-rodriguez deleted the thread_safe_extension_building branch October 6, 2020 14:49
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Don't change ruby process CWD when building extensions

(cherry picked from commit 8b50ccf)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Don't change ruby process CWD when building extensions

(cherry picked from commit 8b50ccf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants