sagemathinc / cowasm-python

CoWasm-Python: WebAssembly Python for Servers and Browsers
6 stars 0 forks source link

python bytecode pyc size #1

Closed williamstein closed 1 year ago

williamstein commented 1 year ago

I think that if you take a file foo.py and create the corresponding file foo.pyc (at least using zipfile) with python-native 3.11 on mac and compare to the same with python-wasm, then WASM one is twice as big. Why? It compresses to the same size!

williamstein commented 1 year ago

I think it might be the same or only sometimes it's different. On the cpython library it seems identical.