diff options
author | Eric Wong <e@80x24.org> | 2019-05-15 10:39:19 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-15 10:54:45 +0000 |
commit | b6f480ed58abc5ae2a426ef4f792621b9d3cf283 (patch) | |
tree | a7b09a555b65b4df74c1b54e9c48df8ce397d21d /lib/PublicInbox/HTTP.pm | |
parent | 7aef27f1a1dd59cfb107a41ca6215059e931d62b (diff) | |
download | public-inbox-b6f480ed58abc5ae2a426ef4f792621b9d3cf283.tar.gz |
It's only useful for a corner case in long-running daemons when an admin decides to compact or vacuum a Xapian or SQLite DB. As a result, other scripts should run slightly faster. For instance, this saves about 80ms (2.710s => 2.630s) in t/mda.t on my remote workstation. While we're at it, make sure EvCleanup is properly require'd in Daemon.pm and HTTP.pm and document our use of Devel::Peek.
Diffstat (limited to 'lib/PublicInbox/HTTP.pm')
-rw-r--r-- | lib/PublicInbox/HTTP.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 11bd241e..10e6d6a4 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -18,6 +18,7 @@ use Plack::HTTPParser qw(parse_http_request); # XS or pure Perl use HTTP::Status qw(status_message); use HTTP::Date qw(time2str); use IO::Handle; +require PublicInbox::EvCleanup; use constant { CHUNK_START => -1, # [a-f0-9]+\r\n CHUNK_END => -2, # \r\n |