From: Eric Wong Date: 2011-06-11T05:50:10+09:00 Subject: [ruby-core:36951] Re: all of dir.c holds GVL SASADA Koichi wrote: > > Is there a reason for holding it (performance on certain platforms?) or > > is it just something nobody has gotten around to changing? > > Maybe, because no one try it :) I tried it (naively for every syscall) but it made common case slower with a hot VFS cache. I lost my measurements, but I remember it wasn't worth it to me: I work on apps that are both multi-process and multi-threaded. With more work, we can GVL for longer periods when stat()-ing many files. Maybe I'll retry for the 1.9.4 timeframe. Thank you for your response. -- Eric Wong