- Download kippo from tar ball on google code and run to see what type of hits you were getting.
- Figure out that it works okay but most of the traffic is attempting sftp
- Set up a fork of kipppo from github, that is really slow. figure that out with:
twistd -y kippo.tac -n --spew
- Figure out the the process is hanging on the deep copy. Decide to try pypy
- Install pypy
- Check the speed of deepcopy
dc.py:
r = []
for i in xrange(40):
l = [round(random.random()*100000) for i in xrange(10*3*60*60)]
r.append(l)
ini = time.time()
copy.deepcopy(r)
print "Time: ", time.time() - ini
- Roughly follow these instructions
$ curl -O http://python-distribute.org/distribute_setup.py
$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ ./pypy-2.1/bin/pypy distribute_setup.py
$ ./pypy-2.1/bin/pypy get-pip.py
$ ./pypy-2.1/bin/pip install pygments # for example
- Install 'twisted' and 'pycrypto'
- Run kippo with:
$ pypy /usr/bin/twisted -y kippo.tac -n
- Change the start.py file to use pypy.