fastthread
Update: latest version of fastthread is 0.6.1
I’ve made the latest version of my optimized locking work available as a gem and a tarball:
In its current incarnation, it’s a ‘fastthread’ library which you require
before ‘thread’ (e.g. on the commandline via -r); it essentially replaces
the existing Mutex, ConditionVariable, Queue and SizedQueue classes
with faster versions, giving any applications using the existing standard
locking primitives a speed boost (and a cure for the nasty memory leaks in
the stdlib versions of those same classes).
Next, I will add replacements for Mutex_m, Sync, and Sync_m. After
that, and after the optimized classes get considerable field testing, I will
look at turning all of this into a patch to Ruby itself, replacing the
current stdlib locking stuff.
A git repository for keeping up with the latest fastthread developments is available here:
http://moonbase.rydia.net/software/optimized-locking/optimized-locking.git#fastthread