diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-10 06:31:08 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-10 06:31:08 +0000 |
commit | cb5670cb5e8d95f9d640f980d3e9eea52a7d8069 (patch) | |
tree | 4e729193d49c4ad6b4b3dc9895a017e818ce12cb /tools/json_to_struct | |
parent | e8967abdbcdc644703b65595c7afb54c406c6a2c (diff) | |
download | chromium_src-cb5670cb5e8d95f9d640f980d3e9eea52a7d8069.zip chromium_src-cb5670cb5e8d95f9d640f980d3e9eea52a7d8069.tar.gz chromium_src-cb5670cb5e8d95f9d640f980d3e9eea52a7d8069.tar.bz2 |
Fix some low hanging inefficiencies in the docs server. Two of the most
expensive operations (by profiling), apart from the template rendering itself,
are calling UnixName (model.py) and removing comments from JSON files
(json_comment_eater.py). This rewrites both and memoizes the former.
BUG=227490
Review URL: https://chromiumcodereview.appspot.com/13599004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193334 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_to_struct')
-rwxr-xr-x | tools/json_to_struct/json_to_struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/json_to_struct/json_to_struct.py b/tools/json_to_struct/json_to_struct.py index d4f90c5..38b6341 100755 --- a/tools/json_to_struct/json_to_struct.py +++ b/tools/json_to_struct/json_to_struct.py @@ -54,7 +54,7 @@ import optparse import re _script_path = os.path.realpath(__file__) -sys.path.insert(0, os.path.normpath(_script_path + "/../../")) +sys.path.insert(0, os.path.normpath(_script_path + "/../../json_comment_eater")) try: import json_comment_eater finally: |