Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: chrome/common/extensions/docs/server2/availability_finder.py

Issue 216703003: Docs: Memoize the FeaturesBundles that are created by AvailabilityFinder to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/availability_finder.py
diff --git a/chrome/common/extensions/docs/server2/availability_finder.py b/chrome/common/extensions/docs/server2/availability_finder.py
index 72ec4f2e1aa6bb8505c75d12a69d1c2181924c95..a2d2fa9d6b6ff8359fed90933e164b2510732061 100644
--- a/chrome/common/extensions/docs/server2/availability_finder.py
+++ b/chrome/common/extensions/docs/server2/availability_finder.py
@@ -11,6 +11,7 @@ from extensions_paths import API_PATHS, JSON_TEMPLATES
from features_bundle import FeaturesBundle
import features_utility
from file_system import FileNotFoundError
+from third_party.json_schema_compiler.memoize import memoize
from third_party.json_schema_compiler.model import UnixName
@@ -177,6 +178,7 @@ class AvailabilityFinder(object):
channel_info.channel))
return available_channel is not None and newest == channel_info.channel
+ @memoize
def _CreateFeaturesBundle(self, file_system):
return FeaturesBundle(file_system,
self._compiled_fs_factory,

Powered by Google App Engine
This is Rietveld 408576698