Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Use more threads for saving images
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovisic committed Apr 1, 2016
1 parent 936e24a commit a1c0297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wraith/save_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run_command(command)
end

def parallel_task(jobs)
Parallel.each(jobs, :in_threads => 8) do |_label, _path, width, url, filename, selector, global_before_capture, path_before_capture|
Parallel.each(jobs, :in_processes => Parallel.processor_count) do |_label, _path, width, url, filename, selector, global_before_capture, path_before_capture|
begin
command = construct_command(width, url, filename, selector, global_before_capture, path_before_capture)
attempt_image_capture(command, filename)
Expand Down

0 comments on commit a1c0297

Please sign in to comment.