From: Joel VanderWerf Date: 2006-11-07T04:00:03+09:00 Subject: Re: fast mutexes for 1.8? Eric Hodel wrote: > As has been discussed further down in this thread, there isn't much to > do to make Mutex faster. The only remaining thing is to avoid > Mutex#synchronize when you need to be really fast. The block invocation > overhead huge. Instead use #lock, #unlock and ensure. Obvious point, but that goes for Thread.exclusive, too. Use Thread.critical= to avoid the block overhead. I was very surprised once to see Thread.exclusive taking so much time in a profile. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407