]> khamidou — GitHub mirrors - arcanist.git/commit
Export extends/implements information in the new libphutil library map
authorepriestley <git@epriestley.com>
Tue, 29 May 2012 18:17:34 +0000 (11:17 -0700)
committerepriestley <git@epriestley.com>
Tue, 29 May 2012 18:17:34 +0000 (11:17 -0700)
commit4eb6b9709787041a93eab55da7ed9c7927517341
treea5017d2c566c0226b7dfa0bafcf1500822545451
parente9a6cd26fc5023d7d02c5105cb955a35c423c0e0
Export extends/implements information in the new libphutil library map

Summary:
For `PhutilSymbolLoader` queries which include `setAncestorClass()`, we need the map of which classes/interfaces things extend/implement to issue the query efficiently.

Without this map, we need to load //every// class/interface and then do `is_subclass_of()`. This is doable, but not very performant if we don't have php-fpm warmup. There are a few performance-sensitive interfaces where we run queries like this, including some in Arcanist, where we'll never have warmup.

This map isn't particularly difficult to generate or maintain, so just include it in symbol generation and in the library map.

Also set parallelism with a flag, since it was arbitrarily hard-coded and adding flags is easy. 8 actually seems approximately optimal on my machine at least, though.

Test Plan: Ran "phutil_rebuild_map.php", opened library map, got a reasonable extension map.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Maniphest Tasks: T1103

Differential Revision: https://secure.phabricator.com/D2585
scripts/phutil_rebuild_map.php
scripts/phutil_symbols.php