aboutsummaryrefslogtreecommitdiff
path: root/tools/js_optimizer.py
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-01-30 17:16:12 -0800
committerChad Austin <chad@imvu.com>2013-03-04 19:27:47 -0800
commita804dfb628279243de1e82504b99d386eb2d2a93 (patch)
tree8bec244c77c941e16b7f2fe7eb5dc79a6b14e851 /tools/js_optimizer.py
parent8e63a929d4fe38d8929bc383a433199cba00555d (diff)
Make chunkify a free function
Diffstat (limited to 'tools/js_optimizer.py')
-rw-r--r--tools/js_optimizer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js_optimizer.py b/tools/js_optimizer.py
index 533242b2..f2d3b7db 100644
--- a/tools/js_optimizer.py
+++ b/tools/js_optimizer.py
@@ -106,7 +106,7 @@ def run_on_js(filename, passes, js_engine, jcache):
intended_num_chunks = int(round(cores * NUM_CHUNKS_PER_CORE))
chunk_size = min(MAX_CHUNK_SIZE, max(MIN_CHUNK_SIZE, total_size / intended_num_chunks))
- chunks = shared.JCache.chunkify(funcs, chunk_size, 'jsopt' if jcache else None)
+ chunks = shared.chunkify(funcs, chunk_size, jcache.get_cachename('jsopt') if jcache else None)
if jcache:
# load chunks from cache where we can # TODO: ignore small chunks