]> Sergey Matveev's repositories - public-inbox.git/commit
msgmap: use DBI->prepare_cached
authorEric Wong <e@80x24.org>
Tue, 12 Oct 2021 11:47:01 +0000 (11:47 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Oct 2021 21:46:34 +0000 (21:46 +0000)
commit83d92d71381e08ec84eafb28ff29193955aa80c3
treeba22b7fc5d7864724905648bfaae8a3ae5f44670
parentfa22ddb787e8cf8ac763f5ed21bea41c34c611c8
msgmap: use DBI->prepare_cached

msgmap is not performance-critical enough to justify doing our
own prepared statement caching.  Just rely on the functionality
of DBI here so future changes will be easier.

There's also minor style changes to avoid dirtying refcount
cache lines bumping by repeating hash lookups rather than attempting
to store them as locals.
lib/PublicInbox/Msgmap.pm