diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-20 20:50:20 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-21 20:47:02 +0100 |
commit | 60a11cfaec3ad560cd7fcedf618001bd9c756b1c (patch) | |
tree | bd52dfb7481ebe89bb65b7f2a3bed579168d85a4 /emscripten.py | |
parent | a2b241e70b7f7606c913e916cffb69514d548ade (diff) |
improve chunkify to consider previous chunkings when caching
Diffstat (limited to 'emscripten.py')
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 945df09a..e90acea7 100755 --- a/emscripten.py +++ b/emscripten.py @@ -171,7 +171,7 @@ def emscript(infile, settings, outfile, libraries=[]): forwarded_json = json.loads(forwarded_data) indexed_functions = set() - chunks = shared.JCache.chunkify(funcs, chunk_size) + chunks = shared.JCache.chunkify(funcs, chunk_size, 'emscript_files' if jcache else None) if cores == 1 and total_ll_size < MAX_CHUNK_SIZE: assert len(chunks) == 1, 'no point in splitting up without multiple cores' if DEBUG: print >> sys.stderr, ' emscript: phase 2 working on %d chunks %s (intended chunk size: %.2f MB, meta: %.2f MB, forwarded: %.2f MB, total: %.2f MB)' % (len(chunks), ('using %d cores' % cores) if len(chunks) > 1 else '', chunk_size/(1024*1024.), len(meta)/(1024*1024.), len(forwarded_data)/(1024*1024.), total_ll_size/(1024*1024.)) |