alpbintug / experiments-on-cython

Experiments on Cython to improve runtime of Python code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Experiments on Cython

Cython is a library that you can use to optimize your Python code and make it run faster

How to use?

  • Write your code in ".py" extension format
  • Save your code in ".pyx" extension format
  • Write a "setup.py" file (Example can be found in repo)
  • Open command prompt in current folder
  • Execute the command written in "command.txt"
  • In command promt, use "python" command to start python terminal
  • Execute command "import YOURPYXFILENAME "
  • Enjoy!

You can optimize your ".pyx" format even more, just check the generated ".html" file for possible improvements.

About

Experiments on Cython to improve runtime of Python code


Languages

Language:HTML 98.3%Language:Python 1.7%