]> Sergey Matveev's repositories - public-inbox.git/commit
view,searchview: avoid smsg method calls when using SQLite/Xapian
authorEric Wong <e@yhbt.net>
Sat, 15 Feb 2020 09:46:37 +0000 (09:46 +0000)
committerEric Wong <e@yhbt.net>
Sun, 16 Feb 2020 00:06:43 +0000 (00:06 +0000)
commit5d5789076ed4da7502ff18748d1553c899b78907
treee635e0620f06ff1fb5a298edb0acefb4874e5dba
parent6f3e8ec25faa1fc71c0bc13bb2615b8fa45a44a1
view,searchview: avoid smsg method calls when using SQLite/Xapian

We already pre-populate the hashref when loading $smsg
(PublicInbox::SearchMsg) objects out of over.sqlite3 or Xapian,
so making expensive method calls isn't necessary in those cases.

We only need to use the method calls when SQLite or Xapian are
not available or are being populated (such as during indexing).
lib/PublicInbox/SearchView.pm
lib/PublicInbox/View.pm