]> Sergey Matveev's repositories - public-inbox.git/commit
DS: remove unused fields and functions
authorEric Wong <e@80x24.org>
Fri, 3 May 2019 10:34:10 +0000 (10:34 +0000)
committerEric Wong <e@80x24.org>
Sun, 5 May 2019 00:24:36 +0000 (00:24 +0000)
commit083dc2651dcc2f9eee1b91135b304b162da7b5b4
tree0baa3cbf31b2d285e9dd3dc30665371829f4c08f
parent5aaea61844b92c452c201ce9832e3c5c68c6f84e
DS: remove unused fields and functions

More will likely be dropped in the future, but drop the obvious
ones we aren't using, for now; especially since some of them are
set at ->new time and unavoidable.

This saves 579 bytes per-client on my 64-bit Debian stable
system as measured by Devel::Size::total_size from
PublicInbox::HTTP::event_read.  This adds up in C10K or C100K
situations.

Things we drop are:

* corked - MSG_MORE requires fewer syscalls
* read_push_back - tried to use it, ate CPU with slow clients
* IP/port fields - accept() already returns what we care about
lib/PublicInbox/DS.pm