|
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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193334
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+180 lines, -69 lines) |
Patch |
 |
M |
chrome/common/extensions/docs/server2/build_server.py
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/docs/server2/compiled_file_system_test.py
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/docs/server2/object_store_creator_test.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/docs/server2/preview.py
|
View
|
1
2
3
4
|
4 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/json_comment_eater.py
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
 |
A |
tools/json_comment_eater/everything.json
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/json_comment_eater/everything_expected.json
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/json_comment_eater/json_comment_eater.py
|
View
|
1
2
3
4
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/json_comment_eater/json_comment_eater_test.py
|
View
|
1
2
3
4
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/json_parse.py
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
tools/json_schema_compiler/memoize.py
|
View
|
1
2
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/json_schema_compiler/model.py
|
View
|
1
2
3
|
2 chunks |
+20 lines, -10 lines |
0 comments
|
Download
|
 |
M |
tools/json_to_struct/json_to_struct.py
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|