Last Modified
Mon Sep 28 19:34:05 -0700 2009
Requires
  • singleton

Description

:nodoc:

Version:$Id: repository.rb,v 1.2 2009/09/29 02:34:05 colbygk Exp $

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