Homec4science

Use futures to improve clustered repository main page performance

Authored by epriestley <git@epriestley.com> on Dec 8 2016, 15:39.

Description

Use futures to improve clustered repository main page performance

Summary:
Ref T11954. In cluster configurations, we get repository information by making HTTP calls over Conduit.

These are slower than local calls, so clustering imposes a performance penalty. However, we can use futures and parallelize them so that clustering actually improves overall performance.

When not running in clustered mode, this just makes us run stuff inline.

Test Plan:

  • Browsed Git, Mercurial and Subversion repositories.
  • Locally, saw a 700ms wall time page drop to 200ms.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11954

Differential Revision: https://secure.phabricator.com/D17009

Details

Committed
epriestley <git@epriestley.com>Dec 8 2016, 16:26
Pushed
aubortJan 31 2017, 17:16
Parents
rPH495092613019: Validate settings before writing them to the user cache
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH5f26dd9b6660: Use futures to improve clustered repository main page performance (authored by epriestley <git@epriestley.com>).Dec 8 2016, 16:26