Page MenuHomePhabricator

D9953.id23886.diff
No OneTemporary

D9953.id23886.diff

diff --git a/src/moduleutils/PhutilLibraryMapBuilder.php b/src/moduleutils/PhutilLibraryMapBuilder.php
--- a/src/moduleutils/PhutilLibraryMapBuilder.php
+++ b/src/moduleutils/PhutilLibraryMapBuilder.php
@@ -15,6 +15,9 @@
private $quiet = true;
private $subprocessLimit = 8;
+ private $fileSymbolMap;
+ private $librarySymbolMap;
+
const LIBRARY_MAP_VERSION_KEY = '__library_version__';
const LIBRARY_MAP_VERSION = 2;
@@ -121,6 +124,8 @@
$progress->done();
}
+ $this->fileSymbolMap = $symbol_map;
+
// We're done building the cache, so write it out immediately. Note that
// we've only retained entries for files we found, so this implicitly cleans
// out old cache entries.
@@ -128,7 +133,17 @@
// Our map is up to date, so either show it on stdout or write it to disk.
$this->log("Building library map...\n");
- return $this->buildLibraryMap($symbol_map);
+
+ $this->librarySymbolMap = $this->buildLibraryMap($symbol_map);
+
+ return $this->librarySymbolMap;
+ }
+
+ public function buildFileSymbolMap() {
+ if ($this->fileSymbolMap === null) {
+ $this->buildMap();
+ }
+ return $this->fileSymbolMap;
}
/**

File Metadata

Mime Type
text/plain
Expires
Wed, May 22, 4:39 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6301126
Default Alt Text
D9953.id23886.diff (1 KB)

Event Timeline