From: Martin Bosslet Date: 2011-08-15T10:26:55+09:00 Subject: [ruby-core:38953] [Ruby 1.9 - Feature #5183] [PATCH] openssl: add OP_NO_COMPRESSION constant Issue #5183 has been updated by Martin Bosslet. Target version changed from 1.9.x to 1.9.3 I can only repeat what Motohiro said the other day - thanks a lot for your contribution, Eric! I also backported this to 1.9.3, as I can only see benefit in this patch. It shouldn't affect the stability of 1.9.3. But please object if anyone thinks different, then I would revert the commit right away. ---------------------------------------- Feature #5183: [PATCH] openssl: add OP_NO_COMPRESSION constant http://redmine.ruby-lang.org/issues/5183 Author: Eric Wong Status: Closed Priority: Low Assignee: Martin Bosslet Category: ext Target version: 1.9.3 Disabling OpenSSL compression can save memory since zlib buffers enforce a rather large per-connection overhead. For memory-constrained systems that have OpenSSL built against zlib, there can be a drastic reduction in memory usage with 1000 open connections: Compression enabled VmRSS: 596132 kB Compression disabled VmRSS: 21924 kB The above was generated with openssl 1.0.0.d-3 on Debian testing (x86_64). The NOCOMP environment variable controls compression in the attached script. If you prefer: git pull git://bogomips.org/ruby openssl-no-compression -- http://redmine.ruby-lang.org