Page MenuHomePhabricator

Skip loading file transform sources when we know a file is not transformed
ClosedPublic

Authored by epriestley on Mar 14 2018, 6:57 PM.
Tags
None
Referenced Files
F15486331: D19224.id46033.diff
Thu, Apr 10, 6:31 AM
F15484317: D19224.id46029.diff
Wed, Apr 9, 5:40 PM
F15455186: D19224.id46029.diff
Sat, Mar 29, 10:42 PM
F15443327: D19224.diff
Thu, Mar 27, 3:45 AM
F15423746: D19224.id46029.diff
Sat, Mar 22, 5:33 PM
Unknown Object (File)
Mar 3 2025, 9:43 AM
Unknown Object (File)
Feb 20 2025, 4:51 PM
Unknown Object (File)
Feb 20 2025, 4:51 PM
Subscribers
None

Details

Summary

Depends on D19223. Ref T13106. When we're loading a file, we currently test if it's a transformed version of another file (usually, a thumbnail) and apply policy behavior if it is.

We know that builtins and profile images are never transforms and that the policy behavior for these files doesn't matter anyway. Skip loading transforms for these files.

Test Plan

Saw local queries drop from 146 to 139 with no change in behavior.

Diff Detail

Repository
rP Phabricator
Branch
perf5
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/files/query/PhabricatorFileQuery.php:231XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 19846
Build 26894: Run Core Tests
Build 26893: arc lint + arc unit