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

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

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: server is fast 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
Index: chrome/common/extensions/docs/server2/example_zipper.py
diff --git a/chrome/common/extensions/docs/server2/example_zipper.py b/chrome/common/extensions/docs/server2/example_zipper.py
index 26dbe1573f16313e6d0f5889e679cd15fb3515a5..510449fc00936b7f8c0670e8b27d66d050457ef6 100644
--- a/chrome/common/extensions/docs/server2/example_zipper.py
+++ b/chrome/common/extensions/docs/server2/example_zipper.py
@@ -7,12 +7,15 @@ from io import BytesIO
import re
from zipfile import ZipFile
+import file_system_cache as fs_cache
+
class ExampleZipper(object):
"""This class creates a zip file given a samples directory.
"""
def __init__(self, file_system, cache_builder, base_path, match_path):
self._base_path = base_path
- self._zip_cache = cache_builder.build(self._MakeZipFile)
+ self._zip_cache = cache_builder.build(self._MakeZipFile,
+ fs_cache.FS_CACHE_ZIP)
self._file_system = file_system
self._match_path = match_path

Powered by Google App Engine
This is Rietveld 408576698