prefer Array#[] lookup to Array#first/Array#last
commited9f3e90939cfa9efcc6e5e9382f1e1f40c49834
authorEric Wong <normalperson@yhbt.net>
Fri, 18 Jun 2010 06:41:58 +0000 (18 06:41 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 18 Jun 2010 07:44:55 +0000 (18 07:44 +0000)
tree32cda6265c16975daebe3c1f0c1430c622e2f608
parent0e4014888f4f7f17d45c96677d672a538c6e6d94
prefer Array#[] lookup to Array#first/Array#last

Array#[] lookups are slightly faster under both rbx and 1.9,
and easier to read.
lib/rainbows.rb
lib/rainbows/event_machine.rb
lib/rainbows/fiber/base.rb
lib/rainbows/fiber/rev.rb
lib/rainbows/http_server.rb
lib/rainbows/rev/client.rb
lib/rainbows/revactor.rb
lib/rainbows/thread_pool.rb