Last Modified
2012-07-30 15:55:11 +0000
Requires
  • monitor
  • singleton

Description

:nodoc:

Version

$Id$

Using Thread.exclusive seems to be more efficient than using a class wide instance of Sync.synchronize in ruby 1.8.6 - Colby

Using Sync.synchronize, 5000 iterations: real 3m55.493s user 3m45.557s sys 0m3.478s

Using Thread.exclusive, 5000 iterations: real 2m35.859s user 2m33.951s sys 0m1.224s