diff options
| author | Edouard CHIN <chin.edouard@gmail.com> | 2025-11-28 02:08:21 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-28 21:01:44 +0000 |
| commit | 413d15a3440abf570fc4bff24fe4b5ee8b7880a5 (patch) | |
| tree | 24b9cc155d9ad722a5c7d520d3d566a5466903e2 /include/ruby/internal/arithmetic | |
| parent | 8c70def42c4596a02d45464d0d694d0c234fb1d7 (diff) | |
[ruby/rubygems] Add `MAKEFLAGS=-j` by default before compiling:
- Depending on the native extension, it can greatly reduce compilation
time when executing recipes simultaneously.
For example on Prism:
```
# Before
time gem install prism
Building native extensions. This could take a while...
Successfully installed prism-1.6.0
1 gem installed
gem install prism 3.61s user 0.80s system 95% cpu 4.595 total
```
```
# After
time MAKEFLAGS="-j" gem install prism
Building native extensions. This could take a while...
Successfully installed prism-1.6.0
1 gem installed
MAKEFLAGS="-j" gem install prism 4.47s user 1.27s system 246% cpu 2.330 total
```
I don't think adding `-j` as a default is harmful, but I'm admitedly
not very knowledgable when it comes to compiler.
https://github.com/ruby/rubygems/commit/61340081c6
Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'include/ruby/internal/arithmetic')
0 files changed, 0 insertions, 0 deletions
