MCPcopy Index your code
hub / github.com/nodejs/node / compress_data

Function compress_data

tools/icu/shrink-icu-src.py:42–45  ·  view source on GitHub ↗
(infp, outfp)

Source from the content-addressed store, hash-verified

40# compression stuff. Keep the suffix and the compression function in sync.
41compression_suffix = '.bz2'
42def compress_data(infp, outfp):
43 with open(infp, 'rb') as inf:
44 with bz2.BZ2File(outfp, 'wb') as outf:
45 shutil.copyfileobj(inf, outf)
46
47def print_size(fn):
48 size = (os.stat(fn).st_size) / 1024000

Callers 1

shrink-icu-src.pyFile · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…