ã¾ããã Rubyã§ç°¡åã«ä¸¦åå¦çãã§ããããã±ã¼ã¸ãParallelãã使ã£ã¦éãã§ã¿ãã®ã§ã¡ã¢ã ä»ååç´ãªããã°ã©ã ã ãã©å¦çé度ãããªãä¸ãã£ãã®ã§æåã§ãã éçºç°å¢ Ruby 1.9.3 gem 1.8.23 Parallel 0.8.4 Parallelã®ã¤ã³ã¹ãã¼ã« gemã§ã¤ã³ã¹ãã¼ã«ãã¾ã sudo gem install parallel # ç¢ºèª gem list parallel Parallelã®åºæ¬çãªæ¸ãæ¹ ãããªæã require 'parallel' # :in_threds => ã¹ã¬ããæ° Parallel.each(lists, in_threds: 2) do |list| # å¦ç end ãã¼ã¨ã¦ãç°¡å ãµã³ãã« ä»åã®ãµã³ãã«ã¯ä»¥åã«Nokogiriã§ã寿å¸ã®ã¡ãã¥ã¼ãåå¾ãã¦ããã³ã¼ãã«å°ãå¤æ´ãå ãã¦ãã¡ãã¥ã¼ã®ç»åãã¡ã¤ã«ããã¦ã³ã
{{#tags}}- {{label}}
{{/tags}}