browse: maximize parallelism when querying git
commit56cca74841a979abe57d68490237aaeae62cbcac
authorDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 04:06:39 +0000 (16 21:06 -0700)
committerDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 05:20:53 +0000 (16 22:20 -0700)
treea814a497c3cbf289f505781c297851308c909c0a
parent2ae88eb9103c84e9a51a21fd244a9e662d6fd775
browse: maximize parallelism when querying git

Mark our call to "git log" as being read-only so that Qt can schedule
more Git operations in parallel.

This avoids taking the lock in Git.execute(), which is safe since we're
not updating the index.  Previously, only one git command would ever run
at a time.  We now run fully parallel, which speeds things up
considerably on multi-core systems.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models/browse.py