[Mongrel] [ANN] fastthread 0.4

MenTaLguY mental at rydia.net
Thu Nov 23 15:46:30 EST 2006

fastthread is a library which replaces the synchronization primitives
defined in stdlib’s thread.rb (Mutex, ConditionVariable, Queue, and
SizedQueue) with optimized versions which:

      * are much faster (in the non-contention case, speed comparable to
        direct use of Thread.critical or Thread.exclusive)
      * don’t leak memory (the stdlib implementation of Mutex manages to
        trigger worst-case behavior of a memory leak in Array)

To use it, simply require 'fastthread' before you require 'thread'.
Provided you don’t muck with thread.rb’s internals, your code should
work with no additional modification.

0.4 is primarily a robustness/bugfix release. There is both a gem and a
tarball available:

      * http://moonbase.rydia.net/software/optimized-locking/fastthread-0.4.gem
      * http://moonbase.rydia.net/software/optimized-locking/fastthread-0.4.tgz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20061123/e29f12ff/attachment.bin 

More information about the Mongrel-users mailing list