From b6f480ed58abc5ae2a426ef4f792621b9d3cf283 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 15 May 2019 10:39:19 +0000 Subject: remove hard Devel::Peek dependency and lazy load for daemons 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. --- t/config_limiter.t | 1 - 1 file changed, 1 deletion(-) (limited to 't/config_limiter.t') diff --git a/t/config_limiter.t b/t/config_limiter.t index 85a71257..b18951a6 100644 --- a/t/config_limiter.t +++ b/t/config_limiter.t @@ -38,7 +38,6 @@ my $cfgpfx = "publicinbox.test"; ok($lim, 'Limiter exists'); is($lim->{max}, 3, 'limiter has expected slots'); $ibx->{git} = undef; - PublicInbox::Inbox::cleanup_task; my $new = $ibx->git; isnt($old, "$new", 'got new Git object'); is("$new->{-httpbackend_limiter}", "$lim", 'same limiter'); -- cgit v1.2.3-24-ge0c7