Hello!

I am currently load testing a system. Under load, the couple of lines
below where I am creating threads are becoming slow:

temp = []
foo_array.each do |foo|
  temp << Thread.new (foo) { |e| ...}
end

I have put a "timer" around these few lines. I know it is completely
dependent on the system but just to give an idea it can take more than
20s for <> 100 threads. Just the code above. I am using 1.8.7 and the
standard MRI.

Am I missing something? Do threads involve a significant overhead?

Thanks a lot,
Pierre

-- 
Posted via http://www.ruby-forum.com/.