]> Sergey Matveev's repositories - public-inbox.git/commit
search: use one git-rev-parse process for all dates
authorEric Wong <e@80x24.org>
Mon, 8 Feb 2021 09:05:20 +0000 (23:05 -1000)
committerEric Wong <e@80x24.org>
Mon, 8 Feb 2021 22:07:50 +0000 (22:07 +0000)
commitecd4e2e20f1af200697e54c2a322a459cdf4c5fc
treeb7c532d20f6cd02f8280a9b3d533d5e4ebe6e4c0
parentfbb7ccabbf54a4054e583dfabc4d0c4cbe2844cb
search: use one git-rev-parse process for all dates

This is necessary to avoid slowdowns with pathological cases
with many dates in the query, since each rev-parse invocation
takes ~5ms.

This is immeasurably slower with one open-ended range, but
already faster with any closed range featuring two dates which
require parsing via git.
lib/PublicInbox/Git.pm
lib/PublicInbox/Search.pm
t/git.t