eio icon indicating copy to clipboard operation
eio copied to clipboard

Fails to read big dir in parallel

Open funny-falcon opened this issue 12 years ago • 0 comments

Preparation

mkdir many
for i in {1..100000} ; do touch many/$i ; done

Failed

require 'eventmachine'
require 'eio/eventmachine'

EM.run do
  EIO.eventmachine_handler
  EIO.readdir('many') {|f|  }
  EIO.readdir('many') {|f|  }
  EM.add_timer(5){ EM.stop }
end

funny-falcon avatar Mar 23 '12 09:03 funny-falcon