mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 17:22:42 +01:00
f841491524
Summary: Fact engines loading dependent objects are super slow because they load them one by one. This diff put each page in a Lisk set allowing engines to use `loadRelatives()`. It also introduces `clearSet()` method which is somewhat neccessary in PHP < 5.3 or with disabled cyclic [[ http://php.net/gc | GC ]]. Test Plan: $iterator = new PhabricatorFactUpdateIterator(new DifferentialRevision()); foreach ($iterator as $revision) { $diffs = $revision->loadRelatives(new DifferentialDiff(), 'revisionID'); echo memory_get_usage() . "\n"; } Experienced not-steadily-increasing memory usage and much faster loading. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3247 |
||
---|---|---|
.. | ||
__tests__ | ||
celerity | ||
daemon | ||
diff | ||
edges | ||
events | ||
internationalization | ||
javelin | ||
lint | ||
markup | ||
query | ||
storage | ||
testing | ||
util | ||
PhabricatorAccessLog.php | ||
PhabricatorEnv.php | ||
PhabricatorScopedEnv.php | ||
PhabricatorSetup.php |