Deep-Phield-Softworks / XeroSum

Isometric, Squad-Based, Real-Time Strategy RPG
0 stars 0 forks source link

Cython/PyPy Usage for General Python Code Speedup #55

Open EricFedrowisch opened 9 years ago

EricFedrowisch commented 9 years ago

Further research needed for code optimization using either Cython or Psycho.

EricFedrowisch commented 9 years ago

Here is the base info on Cython It looks somewhat promising at first glance. Basically, "Cython is an optimising static compiler for both the Python programming language and the extended Cython programming language (based on Pyrex). It makes writing C extensions for Python as easy as Python itself." Not sure how easy it would be to package and distribute, though. Certainly it would add another layer of complexity to distributing.

EricFedrowisch commented 9 years ago

Here is a page with general info about packaging python programs for distribution. It covers several tools and approaches across all the three OS environments we are considering. http://hackerboss.com/how-to-distribute-commercial-python-applications/

EricFedrowisch commented 9 years ago

Psyco is dead accoridng to their site, "12 March 2012 Psyco is unmaintained and dead. Please look at PyPy for the state-of-the-art in JIT compilers for Python." PyPy is apparently the replacement/current work.

EricFedrowisch commented 9 years ago

On PyPy on the Pi. Apparently there is some support for running a modified pygame wrapper on the Pi using PyPy to speed up the code. http://morepypy.blogspot.com/2014/03/pygamecffi-pygame-on-pypy.html

EricFedrowisch commented 9 years ago

We should probably consider using virtualenv to package our software and its dependencies. http://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/

CToups commented 9 years ago

Let's also not completely shelve the idea of a traditional port to C++ or something after everything's said and done. Chap seems to think this the optimal route.