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

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

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/api_data_source_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index f912e4e446cc8986cdba20e56549cc24407d9611..64644d1d10dc9d2cc3c43ade882f31dcdb6c43c7 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -3,10 +3,10 @@
# found in the LICENSE file.
import json
-import logging
import os
from file_system import FileNotFoundError
+import file_system_cache as fs_cache
from handlebar_dict_generator import HandlebarDictGenerator
import third_party.json_schema_compiler.json_comment_eater as json_comment_eater
import third_party.json_schema_compiler.model as model
@@ -30,9 +30,12 @@ class APIDataSource(object):
"""
class Factory(object):
def __init__(self, cache_builder, base_path, samples_factory):
- self._permissions_cache = cache_builder.build(self._LoadPermissions)
- self._json_cache = cache_builder.build(self._LoadJsonAPI)
- self._idl_cache = cache_builder.build(self._LoadIdlAPI)
+ self._permissions_cache = cache_builder.build(self._LoadPermissions,
+ fs_cache.PERMS)
+ self._json_cache = cache_builder.build(self._LoadJsonAPI,
+ fs_cache.JSON)
+ self._idl_cache = cache_builder.build(self._LoadIdlAPI,
+ fs_cache.IDL)
self._samples_factory = samples_factory
self._base_path = base_path
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/api_data_source_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698