{"blog_title":"\u30b9\u30ea\u98ef\u5c4bMaLanka\u306e\u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u65e5\u3005","provider_url":"https://hatena.blog","description":"\u6700\u5927\u5024\u304c 4 \u3060\u304b\u3089\u306a\u306e\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001 --jobs \u3067\u6307\u5b9a\u3067\u304d\u308b\u30b8\u30e7\u30d6\u6570\u306e\u6700\u5927\u5024\u306b\u3064\u3044\u3066\u306e\u8a18\u8ff0\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4e0a\u306b\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u3053\u308c\u306a\u3089\u52d5\u7684\u306b\u30b8\u30e7\u30d6\u6570\u3092\u5909\u3048\u3089\u308c\u308b\u306e\u3067\u306f\uff1f \u3068\u601d\u3044\u8abf\u3079\u3066\u3044\u308b\u3068\u3001 \u300c\u6307\u5b9a\u53ef\u80fd\u306a\u30b8\u30e7\u30d6\u6570\u306fCPU \u306e\u30b3\u30a2\u6570\u3068\u4f7f\u7528\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u300d\u65e8\u306e\u8a18\u8ff0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002 It all depends on how many cores your CPU has and the available memory. Assuming you have decent memory amount, you can use the number of cores as your -j parameter. If you are on linux, you can run this command to list your cores: CPU\u306e\u30b3\u30a2\u6570\u306f getconf _NPROCESSORS_ONLN \u3067\u53d6\u308c\u307e\u3059\u3002 $ echo `getconf _NPROCESSORS_ONLN` => 12 \u3088\u3063\u3066\u3001 $ bundle install --jobs `getconf _NPROCESSORS_ONLN` \u3068\u3059\u308c\u3070\u3001 CPU\u306e\u30b3\u30a2\u6570\u3067\u52d5\u7684\u306b bundle install --jobs \u306e\u30b8\u30e7\u30d6\u6570\u3092\u8a2d\u5b9a\u53ef\u80fd\u305d\u3046\u3067\u3059\u3002","author_name":"mah666hhh","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/mah666hhh/20220829/20220829092749.png","type":"rich","url":"https://www.malanka.org/entry/dynamically-set-number-of-jobs-for-bundle-install","author_url":"https://blog.hatena.ne.jp/mah666hhh/","categories":["\u6280\u8853\u95a2\u9023","\u6280\u8853\u95a2\u9023 - Rails"],"version":"1.0","blog_url":"https://www.malanka.org/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.malanka.org%2Fentry%2Fdynamically-set-number-of-jobs-for-bundle-install\" title=\"\u3010Rails\u3011bundle install --jobs\uff08-j\uff09\u306b\u6307\u5b9a\u3059\u308b\u30b8\u30e7\u30d6\u6570\u3092\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u3001\u6700\u5927\u5024\u306b\u3064\u3044\u3066\u8abf\u3079\u305f - \u30b9\u30ea\u98ef\u5c4bMaLanka\u306e\u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u65e5\u3005\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2022-08-29 09:24:26","provider_name":"Hatena Blog","title":"\u3010Rails\u3011bundle install --jobs\uff08-j\uff09\u306b\u6307\u5b9a\u3059\u308b\u30b8\u30e7\u30d6\u6570\u3092\u52d5\u7684\u306b\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u3001\u6700\u5927\u5024\u306b\u3064\u3044\u3066\u8abf\u3079\u305f"}