From: Eric Wong Date: 2012-06-21T11:50:27+09:00 Subject: [ruby-core:45740] Re: [ruby-trunk - Feature #6615][Open] Release GVL in zlib when calling inflate() or deflate() "drbrain (Eric Hodel)" wrote: > I don't see a way to safely interrupt deflate() or inflate() so the > unblocking function is empty. I think you can safely specify NULL for the ubf in this case instead of using an empty function. > This patch should allow use of output buffer sizes larger than 16KB. > I suspect 16KB was chosen to allow reasonable context-switching time > for ruby 1.8 and earlier. A larger buffer size would reduce GVL > contention when processing large streams. Cool!