HomePhabricator

Reduce the cost of generating default user profile images

Description

Reduce the cost of generating default user profile images

Summary:
See PHI413. You can pre-generate these with bin/people profileimage --all, but they're needlessly expensive to generate.

Streamline the workflow and cache some of the cacheable parts to reduce the generation cost.

Test Plan:

  • Ran bin/people profileimage --all and saw cost drop from 15.801s4.839s.
  • Set defaultProfileImagePHID to NULL in phabricator_user.user and purged caches with bin/cache purge --all.
  • Loaded user directory.
  • Saw default images regenerate relatively quickly.

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

Details

Provenance
epriestleyAuthored on Mar 2 2018, 12:28 AM
epriestleyPushed on Mar 2 2018, 12:53 AM
Differential Revision
D19168: Reduce the cost of generating default user profile images
Parents
rP1f40e50f7e50: Improve live Harbormaster log follow behaviors
Branches
Unknown
Tags
Unknown
Build Status
Buildable 19724
Build 26715: Run Core Tests