Page MenuHomePhabricator

Reduce the cost of generating default user profile images
ClosedPublic

Authored by epriestley on Mar 2 2018, 12:51 AM.
Tags
None
Referenced Files
F15518302: D19168.id45915.diff
Sat, Apr 19, 12:34 PM
F15515785: D19168.id.diff
Fri, Apr 18, 1:22 PM
F15513732: D19168.diff
Thu, Apr 17, 9:20 PM
F15512174: D19168.id45914.diff
Thu, Apr 17, 8:34 AM
F15396868: D19168.diff
Mar 16 2025, 4:42 PM
F15395616: D19168.id45914.diff
Mar 16 2025, 8:28 AM
F15338977: D19168.diff
Mar 9 2025, 1:50 PM
Unknown Object (File)
Feb 26 2025, 9:56 PM
Subscribers
None
Tokens
"Burninate" token, awarded by jmeador.

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 2 2018, 12:52 AM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.