improve method IoLoopBody#tick#49
Conversation
|
Thank you for this. There seems to be a lot of unrelated changes making it hard to figure out what is actually the improvement. Could you please remove the changes that are just aesthetics? (I'm thinking of the changes from block-form I think that the only change you've introduced is moving However, if that is the only change I'm not sure what it is that makes a difference. @sockets.each do |s|
s.connect if s.connecting?
endand connecting.each { |s| s.connect }don't really look like they could have very different performance characteristics. Is it creating the extra array? What exactly is making it faster? What kind of performance difference are you seeing? On what Ruby versions? |
We profiled our apps that use the cql-rb and cequel. The result revealed that the major slowdown happens in the Ione::Io::IoLoopBody#tick. This method slightly improves speed.