about summary refs log tree commit homepage
path: root/test/unit/test_response.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-06-06 01:07:55 +0000
committerEric Wong <e@80x24.org>2015-06-06 01:07:55 +0000
commitc3bc5864d0b8c56adee9544b64c9182d8d4eb206 (patch)
tree57a07b0f9a60550af8f7bdaa7e413f10261a2f7e /test/unit/test_response.rb
parent5aa6b7ad7d8847a5d191ecf8606919b7886df7c2 (diff)
downloadunicorn-c3bc5864d0b8c56adee9544b64c9182d8d4eb206.tar.gz
Combined with the previous commit to eliminate the `@socket'
instance variable, this eliminates the last instance variable
in the Unicorn::HttpRequest class.

Eliminating the last instance variable avoids the creation of a
internal hash table used for implementing the "generic" instance
variables found in non-pure-Ruby classes.  Method entry overhead
remains the same.

While this change doesn't do a whole lot for unicorn memory usage
where the HttpRequest is a singleton, it helps other HTTP servers
which rely on this code where thousands of clients may be connected.
Diffstat (limited to 'test/unit/test_response.rb')
0 files changed, 0 insertions, 0 deletions