You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because we provide pre-compiled gem builds, users should never need to build the gem manually.
139
-
The build process for this gem is completely automated using open source tools. All of
140
-
the automation components are available in the [ruby-concurrency/rake-compiler-dev-box](https://github.com/ruby-concurrency/rake-compiler-dev-box)
141
-
GitHub repository.
113
+
For improved performance on MRI a compantion gem with called `concurrent-ruby-ext` is provided. When the
114
+
extensions are installed `concurrent-ruby` will detect their presence and automatically load them.
142
115
143
-
This gem will compile native C code under MRI and native Java code under JRuby. It is
144
-
also possible to build a pure-Ruby version. All builds have identical functionality.
145
-
The only difference is performance. Additionally, pure-Ruby classes are always available,
146
-
even when using the native optimizations. Please see the [documentation](http://ruby-concurrency.github.io/concurrent-ruby/)
147
-
for more details.
116
+
```shell
117
+
gem install concurrent-ruby-ext
118
+
```
148
119
149
-
To build and package the gem using MRI or JRuby, install the necessary build dependencies and run:
120
+
or add the following line to Gemfile:
150
121
151
-
```shell
152
-
bundle exec rake compile
153
-
bundle exec rake build
122
+
```ruby
123
+
gem 'concurrent-ruby'-ext
154
124
```
155
125
156
-
To build and package a pure-Ruby gem, on *any* platform and interpreter
157
-
(including MRI and JRuby), run:
126
+
and run `bundle install` from your shell.
158
127
159
-
```shell
160
-
BUILD_PURE_RUBY='true' bundle exec rake build
128
+
In your code make sure you require the extension gem **before** you require the core gem:
0 commit comments