On 16.07.2007 04:20, John Carter wrote: > Hmm. Just being reading the Dr. Dobbs. > > I certainly have hit the bottleneck talked about in this article... > http://www.ddj.com/dept/architect/199902669 > when using the 'thread.rb' Queue class. What exactly makes you believe that? Can you show some code and / or figures that back this theory? > I hacked around it by creating a Queue of Arrays, but that probably > creates more garbage than I should. Difficult to say without seeing the code. Generally I'd say that Queue is pretty efficient already since it's implemented in C AFAIR. > This "Spin Buffer" trick looks Good... > http://www.ddj.com/dept/architect/199902669?pgno=2 > > Anyone have a ruby Spin Buffer implementation lying around? I'd check with the RAA. Kind regards robert