]> Sergey Matveev's repositories - public-inbox.git/commit
searchmsg: remove ensure_metadata
authorEric Wong <e@80x24.org>
Tue, 20 Dec 2016 03:03:57 +0000 (03:03 +0000)
committerEric Wong <e@80x24.org>
Tue, 20 Dec 2016 08:24:25 +0000 (08:24 +0000)
commit478d03688600a4c7b50e205d15d76113e019f3cd
tree298f14286d684a51747c29232e9ddbc20715bab9
parent1a75ba282c16f8c15b7891090d0997628d7021dc
searchmsg: remove ensure_metadata

Instead, only preload the ->mid field for threading,
as we only need ->thread and ->path once in Search->get_thread
(but we will need the ->mid field repeatedly).

This more than doubles View->load_results performance on
according to thread-all on an inbox with over 300K messages.
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchMsg.pm
lib/PublicInbox/View.pm
t/search.t