Permalink
Browse files

Forgive HyperThreading, it doesn't harm performance but improves it.

  • Loading branch information...
1 parent 9a20a29 commit 0219fd0f63542552e817606e6b7aa00a69d51417 @whitequark committed Sep 1, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 bin/furnace-avm2-decompiler
@@ -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 }

0 comments on commit 0219fd0

Please sign in to comment.