Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
Forgive HyperThreading, it doesn't harm performance but improves it.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Sep 1, 2012
1 parent 9a20a29 commit 0219fd0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bin/furnace-avm2-decompiler
Expand Up @@ -202,13 +202,7 @@ process = lambda do |what|
end
end

threads = opts[:threads]
if threads.nil?
processors = Parallel.processor_count
threads = processors / 2
$stderr.puts "Using #{threads} threads. Pass `--threads #{processors}' option if " <<
"your CPU does NOT feature hyperthreading or it is disabled."
end
threads = opts[:threads] || Parallel.processor_count

if defined?(JRUBY_VERSION)
parallel_options = { in_threads: threads }
Expand Down

0 comments on commit 0219fd0

Please sign in to comment.