diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-30 01:20:48 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-03-30 01:21:13 +0000 |
commit | d012bfbedf10b925433d1b7bd823370347371e33 (patch) | |
tree | dd7b84c9fcd216b142b6375bf1f1071e6ba59e11 /lib/PublicInbox/Feed.pm | |
parent | f886760b1b5c79181143743814a576a8fa5cf4d9 (diff) | |
download | public-inbox-d012bfbedf10b925433d1b7bd823370347371e33.tar.gz |
This is a smaller improvement than the landing /$INBOX/ page because full message bodies are shown; but still saves around 100ms for my system with LKML.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index f2285a68..2f59f8c2 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -114,7 +114,7 @@ sub recent_msgs { my $o = $qp ? $qp->{o} : 0; $o += 0; $o = 0 if $o < 0; - my $res = $srch->query('', { limit => $max, offset => $o }); + my $res = $ibx->recent({ limit => $max, offset => $o }); my $next = $o + $max; $ctx->{next_page} = "o=$next" if $res->{total} >= $next; return $res->{msgs}; |