diff options
author | Eric Wong <e@80x24.org> | 2016-10-05 23:47:17 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-10-05 23:52:07 +0000 |
commit | 172416d1cd465da4242cc744a3f309d307f1311d (patch) | |
tree | 99800009e9a7707536978338e862091bfb6823ff /lib/PublicInbox/SearchView.pm | |
parent | 08913d1b05e32a7415cbe8afc3c229d108817de8 (diff) | |
download | public-inbox-172416d1cd465da4242cc744a3f309d307f1311d.tar.gz |
Introduce our own SearchThread class for threading messages. This should allow us to specialize and optimize away objects in future commits.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 4f0811a8..da311093 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -11,7 +11,7 @@ use PublicInbox::View; use PublicInbox::MID qw(mid2path mid_mime mid_clean mid_escape); use Email::MIME; require PublicInbox::Git; -require PublicInbox::Thread; +require PublicInbox::SearchThread; our $LIM = 50; sub noop {} @@ -152,7 +152,7 @@ sub mset_thread { $m; } ($mset->items); - my $th = PublicInbox::Thread->new(@m); + my $th = PublicInbox::SearchThread->new(\@m); $th->thread; if ($q->{r}) { # order by relevance $th->order(sub { |