EuroPython, Florence, 2011-06-23
Developer to the user: This server is a small Python script, and it depends on Concurrence only.
Create single-file executable or installer:
Bundle all C code into a single-file executable:
kldload linux
python -i)
The stackless binary contains:
stacklessco also runs these at full speed:
| Linux | |||
| binary | uncompressed | compressed | savings |
| python | 6146018 | 3440514 | –44% |
| stackless | 6310269 | 3469037 | –45% |
| stacklessco | 7808491 | 4148341 | –47% |
| Mac OS X | |||
| binary | uncompressed | compressed | savings |
| python | 5847346 | 3321314 | –43% |
| stackless | 6020717 | 3353053 | –44% |
| stacklessco | 7541811 | 4039337 | –46% |
upx --brute for C code was considered, but it's not used,
because it makes startup slow
advzip -z -4 for Python code
svn commit
argv[0] as a .zip file
-g, force -O2 for gcc in Makefiles
#include "util.h"
import sys; sys.modules[__name__] = __import__('_gevent_core')
Mac OS X:
gcc-mp-4.4 -m32 -static-libcc
FreeBSD:
?