mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Slightly reduce the cost of resolving refs
Summary: Ref T2683. By resolving the stable name earlier, we can save a resolve when viewing branch heads. This is ~100ms in Mercurial, and roughly 25% of page weight. It's less bad in Git. Test Plan: Saw page cost go down in "Services" tab, particularly for Mercurial browse views. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2683 Differential Revision: https://secure.phabricator.com/D9048
This commit is contained in:
parent
e13369d208
commit
53e9df8a02
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ final class DiffusionBrowseMainController extends DiffusionBrowseController {
|
|||
'diffusion.browsequery',
|
||||
array(
|
||||
'path' => $drequest->getPath(),
|
||||
'commit' => $drequest->getCommit(),
|
||||
'commit' => $drequest->getStableCommitName(),
|
||||
)));
|
||||
$reason = $results->getReasonForEmptyResultSet();
|
||||
$is_file = ($reason == DiffusionBrowseResultSet::REASON_IS_FILE);
|
||||
|
|
Loading…
Reference in a new issue